Purchase with "Slow card, always denied" is never set as canceled and always fire purchaseUpdatedListener
See original GitHub issueVersion of react-native-iap
4.4.3
Version of react-native
0.62.2
Platforms you faced the error (IOS or Android or both?)
Android (only tested on it for now)
Expected behavior
For “slow card, always denied”, an update should be received in purchaseUpdatedListener
or in purchaseUpdatedError
when the payment has been canceled. Moreover, if I relaunch the app, the listener should not be fired or at least with the real status which should be “canceled” and not “pending”.
Actual behavior
When on testing environment, if I choose to pay with “slow card, always accepted”, I receive the event in purchaseUpdatedListener
when the payment has been accepted. However, for “slow card, always denied”, there is no update receive in purchaseUpdatedListener
when the payment has been canceled. Moreover, if I relaunch the app, the listener is fired with the same purchase and with the “pending status” whereas there is no reason to fire it because the purchase is now canceled and the status is not the good one.
Tested environment (Emulator? Real Device?)
Real device
Steps to reproduce the behavior
Make a payment with “slow card, always denied”. I am using non-consumables, I don’t know if it’s the same behaviour for suscriptions or consumables products.
Thanks for the lib !!!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
I am having the same issue , but with consumables
i have same issue, is there any solution?, how to handel “Slow card, always denied”?