B4X FEED GooglePlayBilling - Consume Purchase

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: GooglePlayBilling - Consume Purchase است. این موضوع تا کنون 23 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع GooglePlayBilling - Consume Purchase
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
23
پسندها
0
آخرین ارسال توسط PracticalSoft
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)):

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 =...



 

عقب
بالا