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
#1,708 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
117
Avg merge
14h 40m
Merged PRs (30d)
40

Description

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 restorePurchases method (via button in UI)
  • method returns error "The payment is pending"
  1. Environment
    1. Platform: Android
    2. SDK version: 9.14.0
    3. React Native version: 0.81.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.