[Guide] In-App Billing

in this case you have to manually acknowledge, which actually is not the question here…

you have to consume it before being able to purchase it again

Consume
Consumes a given in-app product. Consuming can only be done on an item that’s owned, and as a result of consumption, the user will no longer own it.
Will trigger event Consumed .

Taifun

1 Like

Thank you so much @Taifun and @Yashk12

when i consume a item for buy again and again. If I set AutoAcknowledge to false. when should I acknowledge the purchased item. because i should acknowledge the item after purchase done. if not user will get refund.

Achnowledge and Consume are 2 different things…

Do you have a validating server component?
If yes, set AutoAcknowledge to false, else to true

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.

before being able to purchase an already purchased product again, you first have to Consume it.

Taifun

Hello I have a doubt. Subscribe option will continue forever?
Because i saw a message in Subcription option → Resubscribe Area " Resubscribe is not currently available for your users because your app does not use Billing Library 2.0 in all active app bundles"
Please find the Attachment below

Please clear my doubt

usually yes, only in India Google seems to make an exception

Taifun

Ok by the way, I am from Sri Lanka. Same problem i am facing

the message is strange… because you have to use Version 3 to be able to upload a new version of your app… you might want to ask Google support…

if the subscription ended, the users just have to resubscribe… actually it is not a problem…

Taifun

I have just checked my published app. I set subscription for Remove Ads Option. It is working but unable complete process( Finally got error of Transaction failed - Only for subscription) by the way in app billing purchase is working good.

Below see the attachments



Finally Transaction failed - this issue only for subscription.
What’s the problem? Give me solution.

your error message is “Transaction was declined”
let me do a Google search for you
https://www.google.com/search?q=Android+billing+error+Transaction+was+declined

for example Problems with in-app purchases - Google Play Help

If you’re trying to make an in-app purchase but the transaction is declined or the payment won’t go through, try to fix payment issues on Google Play.

Let us know how you fixed the issue… thank you…

Taifun

@Taifun, all works fine. :slight_smile:

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