0

I have problem with revenuecat. The application woking fin in the previous version. but when I tried testing the payment with new version the payments is not woking it gives me this error -- i'm using flutter

PlatformException(4, One or more of the arguments provided are invalid., {code: 4, message: One or more of the arguments provided are invalid., readableErrorCode: PurchaseInvalidError, readable_error_code: PurchaseInvalidError, underlyingErrorMessage: Error updating purchases. DebugMessage: . ErrorCode: DEVELOPER_ERROR., userCancelled: false}, null) 
 PurchaserInfo purchaserInfo = await Purchases.purchasePackage(pk);
      if (purchaserInfo.entitlements.all[entitlements(pk)].isActive) {
        // Unlock that great "pro" content
        return true;
      }

Do you have any idea how to solve this problem ? revenuecat is woking fin in IOS .

prg.dev
  • 141
  • 1
  • 3
  • 16
  • Can you share a snippet of how you’re calling the purchase function? – Cesar Jul 08 '21 at 17:59
  • @Cesar i edit the question and i added the code – prg.dev Jul 09 '21 at 10:59
  • That looks good, but something is clearly wrong either on the Google's product side or on your sandbox account. To debug what's causing this I would create a new tester account to make sure it's not something on the user side, and second, I would create a new product and assign it to a new package to make sure it's not something related to the product. – Cesar Jul 12 '21 at 15:05

0 Answers0