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.

iOS Receipt Lost - Don't get saved in DB

See original GitHub issue

Version of react-native-iap

“react-native-iap”: “^4.4.1”,

Version of react-native

“react-native”: “https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz”, (ExpoKit)

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

How to get last receipt Trasaction (only one).

Actual behavior

Get latest and active one transaction receipt details (JSON)

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

After calling await RNIap.requestPurchase(productID); and getting payment I’m saving the results in my DB based on the userID. However, while taking payment, due to some reason I’m not able to save that in my DB and the payment get successful.

I know we can get the all receipts with getAvailablePurchases(). But it’s like it will load 100s of data (if its available). How to get the recent active transaction details with receipt?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anastelycommented, May 27, 2020

Well, So 4.4.3 is stable to downgrade to it? Thanks.

Edit

The problem solved #1020 😄

0reactions
creativemind1commented, May 27, 2020

Other people too facing issue with finishTransactioniOS in 4.4.8 version as well. So I guess the problem is in the module itself. It would not be wise to check if other also facing the same. I suggest you simply get back to the previous versions modules and then revert to the latest when your issue get resolved. Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

in-app receipt saved to db has inv… | Apple Developer Forums
I'm needing to save the user's receipt into a db field to retreive for later validation/update. When I copy the saved receipt and...
Read more >
Back track IOS Receipt Information of Payments made using In ...
A receipt is generated for all transactions, but for consumable purchases and non-renewing subscriptions the item is removed from the receipt ...
Read more >
Receipt Paper: Why It Fades and How to Restore It?
Thermal receipt paper will fade gradually. This article will introduce three ways to restore the faded thermal receipt paper.
Read more >
9 Best Receipt Apps in 2022 - Keeper Tax
There are a ton of receipt apps out there to choose from. We'll help you cut through the noise and pick the best...
Read more >
The Best Way to Connect Your iOS App to MySQL Database ...
Don't worry, we'll go through all of that in this tutorial. ... You won't be able to save your password until the “password...
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