react-native-iap
react-native-iap copied to clipboard
Apple requestPurchase inconsistent with showing the popup for confirm payment.
Please use Discussion board if you want get some help out of it. Please report issue if there is a bug.
Version of react-native-iap
"react-native-iap": "7.2.1",
Version of react-native
"react-native": "^0.64.1",
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
Apple pop-up to pay to work every time without having to create another user into the sandbox and make all apple's validation steps to start testing again...
Actual behavior
For unknown reasons Apple's pop-up when calling requestPurchase
does not appear suddenly and there is no error thrown or anything I'm not sure how to debug this issue or what is the issue and creating a new email account -> register in Sandbox -> doing every verification step to start testing again is not fun...
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
Calling this method with different productIds and testing the actual behavior having both more than 1 product/subscription (for testing purposes);
RNIap.requestPurchase(productId)
.then((purchase: any) => {
console.log({purchase});
})
.catch((errorPurchase: any) => {
console.log({errorPurchase});
});