Hi I am testing sandbox subscriptions with test user 5 min / month and 30 min/ year with Revenue Cat. And I am also testing restore Purchase. But every time handle the same error
PurchaseCode.PaymentPendingError
With debug I see that
billingWrapper.queryAllPurchases
return the list of purchases, but next
return the list of PurchaseWrapper objects
PurchaseWrapper(isConsumable=true, purchaseToken=blablalbla, purchaseTime=11111111, sku=blabla_subscription_year, containedPurchase=null, type=SUBS, presentedOfferingIdentifier=null)
But,
containedPurchase==null
and that's why i get the erro after check has failed:
if (purchase.containedPurchase?.purchaseState == Purchase.PurchaseState.PURCHASED)
What should I do to solve the issue?
regards, Serg