[Guide] In-App Billing

great to hear
please let us know how you fixed the issue ““Transaction was declined”
thank you

Taifun

there was no money in my wallet, i used somewhere.so topup my account it worked.

1 Like

Do my app need to have a log in/sign in system to provide the subscription plans?
Or will the above procedure is enough for subscription based app without login system?

yes it’s enough

I don’t have a login system in my app. I have a subscription purchasing system. But I can hack my own app with Lucky Patcher. I can only see real purchases from Google console. (Im using to Taifun Billing Extension)
Can you understand this system in detail?

which means, you do not verify a purchase…
see also the documentation App Inventor Extensions: Billing | Pura Vida Apps

Acknowledge purchases : your app must consume or acknowledge all purchases. This is a new feature Google added into the Billing library to prevent fraud. If you don’t consume or acknowledge a purchase within three days, Google automatically revokes the purchase and refunds the user.
If your app has a validating server component, you should only acknowledge a purchase after successfully validating it.

Verifying purchases is not required, but is considered a best practice when selling in-app products. For more about how to fight fraudulent purchases, check out chapter Verify purchases before granting entitlements in the Fight fraud and abuse page and chapter Processing Purchases in the Integrate the Google Play Billing Library into your app page.
After verifying the purchase, your app then needs to acknowledge the purchase.

How the billing extension can help: If you decide to not verify the purchase, you can use the AutoAcknowledge feature of the extension to automatically acknowledge after purchasing. If you choose to verify the purchase, use the PurchaseUpdated event to get the purchase token and follow chapter Verify purchases before granting entitlements in the Fight fraud and abuse page. After successful verification then use method Acknowledge together with the purchase token to acknowledge the purchase.

Taifun

my problem is that i sell coins in the application i want people to be able to buy my product many times but what i see is that it can only be once… how can i get users to buy coins again and again?

Allow multiple purchase in google play console

Oke thank you

1 Like


What about this block . Is this same multiple buy ?

just consume the purchase
you will have to manage the number of coins the user owns yourself then

Taifun

Yes like that…but it just one time purchased.cannot buy again.

After users purchase your coins, increase the number of coins in the app and consume the purchase so they can buy again.

But when call billing again after purchased empty item .

my airline example shows you how to consume a product to be able to purchase it again

Taifun

1 Like

Read the above link and show us what you have tried.

This is taifun axtension, can i use Same way for oceanmia extion.

generally yes, the basic principle is the same, but version 5 does offer more features and therefore is more complex, so it will be a bit different… hope that helps…

Taifun

how to setup blocks for new kodular billing version of GPBL, blocks changed for “Is Purchased”

Solved Here: