On the android in app purchase screen, I am allowed to choose a slow successful test card or a slow declining test card. With both of these cards, the receipt is always validated successfully, even though the payment is still pending in the google play console. Is there any way to check wether a payment is pending or successful or unsuccessful using this library.
The purchase status in the validated response from iap.validate() is always 2.
I am so stupid. A purchase state of 2 does not mean validated. Source It means pending. So silly. A purchase state of 0 means successfully purchased. And 1 means canceled.
On the android in app purchase screen, I am allowed to choose a slow successful test card or a slow declining test card. With both of these cards, the receipt is always validated successfully, even though the payment is still
pending
in the google play console. Is there any way to check wether a payment is pending or successful or unsuccessful using this library. The purchase status in the validated response fromiap.validate()
is always2
.