You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android and react-native-iap versions 12.3.1 and greater, during a downgrade flow, the method finishTransaction will not complete. However, on 12.3.0 and previous, this flow will complete successfully and resolve.
Here is the code we're using for finishTransaction:
During testing, I didn't see any relevant logs or error messages; it appears to fail silently or just simply not resolve completely. Let me know if I can run through it again and look for something I may have missed in JS logs or Android Studio logs.
I haven't read through the entirety RNIapModule.kt but this appears to be the change that causes our issue: 12.3.0...12.3.1
Expected Behavior
If an Android user downgrades their subscription and completes the purchase within Google Play pop up, finishTransaction should resolve successfully.
For android you should use acknowledgePurchaseAndroid, but I recommend handle on server side, here is the documentation about acknowledge for server side:
@yedi97 what is the function of "acknowledgepurchaseandroid"?
To confirm to google, that indeed the user has now "subscribed" for example - as a confirmation?
@yedi97 what is the function of "acknowledgepurchaseandroid"? To confirm to google, that indeed the user has now "subscribed" for example - as a confirmation?
Yes, if not call acknowledgePurchaseAndroid user payment will be refunded after a few days, I remember 3 days
Description
On Android and react-native-iap versions 12.3.1 and greater, during a downgrade flow, the method
finishTransaction
will not complete. However, on 12.3.0 and previous, this flow will complete successfully and resolve.Here is the code we're using for finishTransaction:
During testing, I didn't see any relevant logs or error messages; it appears to fail silently or just simply not resolve completely. Let me know if I can run through it again and look for something I may have missed in JS logs or Android Studio logs.
I haven't read through the entirety RNIapModule.kt but this appears to be the change that causes our issue: 12.3.0...12.3.1
Expected Behavior
If an Android user downgrades their subscription and completes the purchase within Google Play pop up,
finishTransaction
should resolve successfully.Environment:
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: