question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't receive the receipt

See original GitHub issue

Hi!

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:

Image

Thanks for the great work!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hyochancommented, Jan 28, 2018

@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.

0reactions
rmoreira0commented, Jan 28, 2018

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found