Can't receive the receipt
See original GitHub issueHi!
I’m having a problem when i buy a item. Everything works great, i can prepare the function, load the products from the store but when i purchase the item, i can’t receive the receipt, doesn’t show anything. This is the code i’m using when trying to buy:
RNIap.buyItem(productId).then(receipt => {
alert(JSON.stringify(receipt));
}).catch(error => {
alert(JSON.stringify(error))
});
The purchase works because i receive the email from google and in the android studio i can see the purchase:
Thanks for the great work!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
EMAIL NOT RECEIVING TO RECEIPT - Microsoft Community
Your message couldn't be delivered because the recipient's email server (outside Office 365) suspected that your message was spam. To fix this, ...
Read more >Video: When the receipt doesn't come - Microsoft Support
Not receiving a delivery or read receipt can mean a lot of things. It doesn't mean your message wasn't delivered, opened, or read....
Read more >I have not received the receipt. What should I do?
I have not received the receipt. What should I do? · First, check your Spam or Junk folder. Sometimes, important emails get caught...
Read more >Anyone not receiving in app purchase receipts from Apple?
I get the confirmation email of purchase but although the email address is correct I don't receive the receipt by email after several...
Read more >Request or return a read receipt - Gmail Help - Google Support
Tip: If someone requests a read receipt, but you don't see a message, your receipt was sent automatically. When receipts aren't returned. Read...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rmoreira0 Great that it is working. Yeah~ Since Alert is happening in UI thread, your code will be interrupted with UI thread being used by Android after purchase. Therefore to avoid it you should give some delay with timeout or use InteractionManager to make your Alert being called. I knew it but I’ve missed that from your question tough.
Thank you.
@dooboolab
Oh man… Everything is working great, the problem is that i was expecting to see the alert and the alert never appears. So i save the receipt in the state and its there xD
I’m sorry for this and thank you so much for the help! Keep up the great work!