Closed bopoda closed 3 years ago
It depends what you are going call "active subscription". In your case the subscription in billing retry period. It means subscription expired, but in case when user will refill the balance (or bank issue will be fixed) Apple will charge him and you will get new transaction.
@Stafox thank you for your reply.
My main concern is if user should have access to premium features in app or not in such a case?
In your case the subscription in billing retry period. It means subscription expired
So, using the getStatus
method, I receive "active" and consider the user should have access to premium features like he has an active subscription.
No, in general, user should not have access to premium in that case.
@Stafox, thanks. I will close issue
https://github.com/aporat/store-receipt-validator/blob/master/src/iTunes/PendingRenewalInfo.php#L237-L238
Hi,
I wonder if we should consider all the iTunes responses with subscription without field "expiration_intent" in "pending_renewal_info" section as "active"?
1. For example, that's from iTunes response (Sandbox env):
2. That's part of response (Production env):
I should say that's is very rare case for Production when pending_renewal_info does not contain expiration_intent but contains is_in_billing_retry_period:"1".
In the example above, on the one hand, it looks like the subscription expired 2.5 months ago. On the other hand, it doesn't contain expiration_intent.
In your opinion, is it correct if we consider the second response as active subscription from the server validation perspective?