You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use the Discussion board if you want to get some help. Please use issues to report bugs.
Description
We recently put an iOS app with subscriptions into App store.
We have received reports that users are unable to resubscribe after cancelling their subscription.
After looking into the issue we discovered that RNIap.requestSubscription({}) keeps returning previously cancelled subscription and no payment view is presented.
While transactionId, transactionReceipt are new with every subscription they have previous subscription expiration_time and pending_renewal_info
Meaning when calling RNIap.requestSubscription({}) no payment screen is presented and a cancelled subscription is returned immediately. After validating the new transactionReceipt we see.. 'pending_renewal_info': [{'expiration_intent': '1', - which means the subscription is cancelled.
And the decoded transactionReceipt has receipt_creation_date of today, but the expires_date in the past
We have added a following workaround for production only
If RNIap.requestSubscription({}) returns an expired subscription, we display an alert to the user saying that he already has a subscription and he has to go to phone settings -> my subscriptions to renew it. There is a renew button there.
After the sub is renewed its expires_date is updated
Description
We recently put an iOS app with subscriptions into App store.
We have received reports that users are unable to resubscribe after cancelling their subscription.
After looking into the issue we discovered that
RNIap.requestSubscription({})
keeps returning previously cancelled subscription and no payment view is presented.While
transactionId
,transactionReceipt
are new with every subscription they have previous subscriptionexpiration_time
andpending_renewal_info
Meaning when calling
RNIap.requestSubscription({})
no payment screen is presented and a cancelled subscription is returned immediately. After validating the newtransactionReceipt
we see..'pending_renewal_info': [{'expiration_intent': '1',
- which means the subscription is cancelled.And the decoded
transactionReceipt
hasreceipt_creation_date
of today, but theexpires_date
in the pastExpected Behavior
RNIap.requestSubscription({})
creates a new subscription instead of returning canceled subscription without prompting for payment.Environment:
To Reproduce
Steps to reproduce the behavior:
RNIap.requestSubscription({})
returns with resultresult.purchase.transactionReceipt
against apple serversexpires_date
is in the pastThe text was updated successfully, but these errors were encountered: