Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment completed with error #482

Open
Hitesh548 opened this issue May 8, 2024 · 1 comment
Open

Payment completed with error #482

Hitesh548 opened this issue May 8, 2024 · 1 comment

Comments

@Hitesh548
Copy link

Version of flutter_inapp_purchase - 5.4.2

Platforms you faced the error - IOS

Tested environment - Real Device

<SKPaymentQueue: 0x303de0820>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x30309a940 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?REDACTED, AMSStatusCode=500, NSLocalizedFailureReason=The response has an invalid status code}}, storefront-country-code=USA, client-environment-type=Sandbox}

Purchase Failed !!
flutter: purchase-error: responseCode: null, debugMessage: SKPaymentTransactionStateFailed, code: E_UNKNOWN, message: An unknown or unexpected error has occured. Please try again later.

Getting this above error when we upgrade the auto-renewable plan from monthly to yearly

@giantss
Copy link

giantss commented May 9, 2024

I also got the same error: responseCode: null, debugMessage: SKPaymentTransactionStateFailed, code: E_UNKNOWN, message: An unknown or unexpected error has occurred. Please try again later.

But my logic is that (sandbox environment) subscribe first, then unsubscribe, and then subscribe again (FlutterInappPurchase.purchaseError.listen is called back after entering the sandbox account password), and this error occurs.

This logic will definitely cause this error. Is this a bug?
@hyochan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants