- Jun 6, 2020
- 11,559
- 4,422
Hi,
I am using GooglePlayBilling v5, and got a question about consume with the purchase.
In my app I am using an in-app purchase (not subscription) and the customer may purchase the in-app purchase, it will then send an API to my B4J app to make it do something and I want the customer to repurchase it again in the future. I have this working using the GooglePlayBilling v3 but now I am trying to work out what the Consume does.
I have followed the tutorials on the forum but got a question..
From my understanding I start the in-app purchase like:
billing.LaunchBillingFlow(SkuDetails.Get(0)):
This will then cause it to popup asking the customer to do the in-app purchase.
If the transaction was successful then it will trigger billing_PurchasesUpdated.
(Hopefully I am correct so far.)
I can then check if the purchase was valid or not by calling:
B4X:
If the transaction is valid then I can call:
B4X:
I am using GooglePlayBilling v5, and got a question about consume with the purchase.
In my app I am using an in-app purchase (not subscription) and the customer may purchase the in-app purchase, it will then send an API to my B4J app to make it do something and I want the customer to repurchase it again in the future. I have this working using the GooglePlayBilling v3 but now I am trying to work out what the Consume does.
I have followed the tutorials on the forum but got a question..
From my understanding I start the in-app purchase like:
billing.LaunchBillingFlow(SkuDetails.Get(0)):
billing.LaunchBillingFlow("MySkuHere")
This will then cause it to popup asking the customer to do the in-app purchase.
If the transaction was successful then it will trigger billing_PurchasesUpdated.
(Hopefully I am correct so far.)
I can then check if the purchase was valid or not by calling:
B4X:
If billing.VerifyPurchase(p, BILLING_KEY) = True then ...
If the transaction is valid then I can call:
B4X:
If p.IsAcknowledged =...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید