RevenueCat / RevenueCat/react-native-purchases
[react-native-purchases] If user purchased from Google Play store non-consumable, then you refunded it, calling `restorePurchases` causing error "The payment is pending"
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 117
- Avg merge
- 14h 40m
- Merged PRs (30d)
- 40
Description
- I have updated Purchases SDK to the latest version
- I have read the Contribution Guidelines
- I have searched the Community
- I have read docs.revenuecat.com
- I have searched for existing Github issues
Describe the bug
STR
- user purchased from Google Play store non-consumable product
- refund it (and check "Revoke access" checkbox in google store UI refund screen)
- user calls
restorePurchasesmethod (via button in UI) - method returns error "The payment is pending"
- Environment
- Platform: Android
- SDK version: 9.14.0
- React Native version: 0.81.5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Google Play flow and trace the Android implementation of restorePurchases. Determine why a refunded non-consumable is reported as “The payment is pending,” then verify that the method returns the expected result after the refund and access revocation flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100