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
Please use the Discussion board if you want to get some help. Please use issues to report bugs.
Description
I am facing an issue while integrating react-native-iap on iOS. I am able to fetch the products I created on app store connect.
The purchase popup appears after clicking on the purchase button and entering my Apple credentials. However, after a successful payment, there is no callback on the listener. After that, I'm repeatedly prompted for the purchase, regardless of how many times I enter my password. And if I cancel the payment, I get a proper response on my currentPurchaseError state.
Expected Behavior
For purchase to complete (either fail or pass). And receive a callback from the listener. If not at least it should not prompt for payment again.
Screenshots
Environment:
"react": "17.0.2"
"react-native": "0.66.5"
"react-native-iap": "^12.12.1"
Platforms (iOS, simulator, device):
To Reproduce
Below is the code for my PurchaseScreenIOS screen
I have selected for In-App Purchase in Xcode and created products on apple app store connect.
[Optional] Additional Context
The text was updated successfully, but these errors were encountered:
requestPurchase({sku: id})
.then(async data => {
console.log("Purchase was completed");
})
.catch(err => {
console.log("Purchase was not completed");
});
Description
I am facing an issue while integrating react-native-iap on iOS. I am able to fetch the products I created on app store connect.
The purchase popup appears after clicking on the purchase button and entering my Apple credentials. However, after a successful payment, there is no callback on the listener. After that, I'm repeatedly prompted for the purchase, regardless of how many times I enter my password. And if I cancel the payment, I get a proper response on my currentPurchaseError state.
Expected Behavior
For purchase to complete (either fail or pass). And receive a callback from the listener. If not at least it should not prompt for payment again.
Screenshots
Environment:
To Reproduce
Below is the code for my PurchaseScreenIOS screen
I have selected for In-App Purchase in Xcode and created products on apple app store connect.
[Optional] Additional Context
The text was updated successfully, but these errors were encountered: