Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purchaseUpdatedListener returns empty purchase object when subscription status changes from Account Hold to Active #2866

Open
taylornzme opened this issue Oct 21, 2024 · 0 comments

Comments

@taylornzme
Copy link

taylornzme commented Oct 21, 2024

Description

The purchaseUpdatedListener returns an empty purchase object when a subscription change status from 'Account Hold' to "Active'. The purchaseUpdatedListener returns {"debugMessage": "", "extraMessage": "The purchases are null. This is a normal behavior if you have requested DEFERRED proration. If not please report an issue.", "responseCode": 0}.

Expected Behavior

The purchaseUpdatedListener should return a purchase object containing the purchase information of the subscription. The server to server notification from Android returns the subscription information and status as 'Active' and the notificationType: 1 which is SUBSCRIPTION_RECOVERED so the subscription has successfully been renewed.

Environment:

  • react-native-iap: 12.15.0
  • react-native: 0.68.7
  • Platforms (iOS, Android, emulator, simulator, device): Android 11

To Reproduce
Steps to reproduce the behavior:

  1. Purchase subscription
  2. Change test card in Play Store to fail
  3. Subscription renewal fails and subscription changes status to SUBSCRIPTION_IN_GRACE_PERIOD
  4. Wait for subscription to fail renewal again and then subscription changes status to SUBSCRIPTION_ON_HOLD
  5. Change test card in Play Store back to successful purchase
  6. Subscription status returned is SUBSCRIPTION_STATE_ACTIVE
  7. purchaseUpdatedListener returns {"debugMessage": "", "extraMessage": "The purchases are null. This is a normal behavior if you have requested DEFERRED proration. If not please report an issue.", "responseCode": 0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant