in-app-purchase
in-app-purchase copied to clipboard
Android expirationTime issue
Hello,
When i cancel subscription and buy it again in sandbox environment, the expirationTime in validation response doesn't change it returns previous expirationTime. All the other informations are correct.
Hello,
Would you paste the response object here?
Cheers
Hello again,
You can reproduce this by doing -Purchase subscription -Validate -Cancel subscription -Purchase subscription again -Validate
First Response: { orderId: 'GPA.3369-2045-9223-68398..0', packageName: 'com.example.game', productId: 'se_vipsubscription', purchaseTime: 1506065137931, purchaseState: undefined, purchaseToken: 'pabeldfhmkjnhppdkmgapcfg.AO-J1OwbjNsLrYdn27rSzBNTRB9HV17SBw_jYKpS0n_B1twNoEoYFT6ekjthoLlCiouwZEos110pWugR16CXmR7OatMVTnJDp5TntGISjBLXiXPJUm5vXXnf5MBKfmArpMRgFM5UU1-6', autoRenewing: true, status: 0, kind: 'androidpublisher#subscriptionPurchase', startTimeMillis: '1506065137931', expiryTimeMillis: '1506158746083', priceCurrencyCode: 'TRY', priceAmountMicros: '30990000', countryCode: 'TR', developerPayload: '', paymentState: 1, service: 'google', expirationTime: '1506158746083', cancelReason: undefined }
Second Response: { orderId: 'GPA.3304-4650-4988-49538', packageName: 'com.example.game', productId: 'se_vipsubscription', purchaseTime: 1506065478971, purchaseState: undefined, purchaseToken: 'odemiipdihdeiaoeabhapbni.AO-J1OzQZZxZxuo50ujVq4yAWozaHUsim31SA6I3q7Yj_FVUiqaOKaB2C6r_GWfbPtCMBcZw-NzR8gQmUWabQR2n1fWr7ylgYMaD-WmoQAzrlXEYlcL4uXejafjsbLxDCUDv_AwwriKk', autoRenewing: true, status: 0, kind: 'androidpublisher#subscriptionPurchase', startTimeMillis: '1506065478971', expiryTimeMillis: '1506158746083', priceCurrencyCode: 'TRY', priceAmountMicros: '30990000', countryCode: 'TR', developerPayload: '', paymentState: 1, service: 'google', expirationTime: '1506158746083', cancelReason: undefined }
Thanks in advance
I wonder if it is the default behaviour of the Android Playstore. Makes sense, because although the original subscription was cancelled, it is still "active" until the expiry date is reached because you've paid for that subscription period. Don't make sense to have two active subscriptions for the same app. I don't think there is a refund for subscriptions right? Did the store charge for the 2nd one when it was purchased? I guess not?