j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.3k stars 537 forks source link

Google Play: stop/resume don't work properly. #117

Closed agamemnus closed 6 years ago

agamemnus commented 9 years ago

If you are in the middle of a consumable transaction, switch out of the app, and then return back and complete the transaction, any new consumable transaction of the same type will yield the following error:

Google Play Store error 7: Purchase failed: Error purchasing: IabResult: Unable to buy item (response 7:Error)

agamemnus commented 9 years ago

A lot of the error callbacks don't have a return statement. That's an error and should be fixed.

Dhamu143 commented 7 years ago

hey is there any update on this issue? i am also facing this issue.

agamemnus commented 7 years ago

See: https://github.com/j3k0/cordova-plugin-purchase/issues/108#issuecomment-69243398 for my solution.

Dhamu143 commented 7 years ago

I replaced plugin's file with https://github.com/agamemnus/cordova-plugin-purchase/blob/fixed_returns/src/android/com/smartmobilesoftware/inappbilling/InAppBillingPlugin.java your file.

it did not work for me.

agamemnus commented 7 years ago

Try seeing if the other steps in Issue 108 help.....

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.