Test on local development a production purchase #1689
Mihai-github
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
The app that I'm working on is already in AppStore, and we had a problem with one subscription and we don't know right now how to debug it.
RNIap.requestPurchase(productId).then(resp => console.log(resp)).catch(err => console.log(err))
The problem we faced is Apple proceeded with the payment and took the money, but the
RNIap.purchaseErrorListener()
was called and theRNIap.requestPurchase
promise never "we think" went tothen
where we make some things in order to activate the subscription on our server.And as a result, the RNIap.purchaseErrorListener was called and we did not print the actual error to the user just a generic text.
Questions:
-> 1. Is there a way in development to test production purchases? Not using the Sandbox to make the purchases and to actually pay for this product.
-> 2. We found out that the person has 3d secure enabled, may this be the problem?
-> 3. How to deal with 3d secure if enabled? Is there some kind o docs or idk?
-> Where is the best place to place some code that should execute if the payment went throw with success?
a) Inside the RNIap.purchaseUpdatedListener()?
b) On the resolve function for RNIap.requestPurchase(productId) promise?
c) Any other place?
Beta Was this translation helpful? Give feedback.
All reactions