M
M
magary42015-05-24 08:30:40
Android
magary4, 2015-05-24 08:30:40

Where is the android-inapp-billing callback after making a purchase?

I use this library https://github.com/anjlab/android-inapp-billing-v3
the user launches the shopping activity, enters the necessary data that google play requests after writing success, but how can I further determine that the payment went through? callback after all should be any or to me somehow on a cycle periodically it is necessary to check isPurchased???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2015-05-24
@maaGames

For purchases: bp.isPurchased( PRODUCT_NAME )
There is a method for checking the subscription.
bp - BillingProcessor
PRODUCT_NAME - string name of the product, as specified in the console.
Checking should be added, among other things, to the onResume method of the activity in which the purchase was made. Because for the purchase it goes into the background, and then wakes up at the end. I hope I wrote clearly ... I myself just started to deal with payments.)

I
IceJOKER, 2015-05-24
@IceJOKER

ARE YOU KIDDING ME????!!
It's on the same page you shared the link on, can't you at least read the first page? O_O
8fb7af714f.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question