flutter_inapp_purchase icon indicating copy to clipboard operation
flutter_inapp_purchase copied to clipboard

Payment completed with error

Open Hitesh548 opened this issue 1 year ago • 8 comments

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

Hitesh548 avatar May 08 '24 06:05 Hitesh548

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

giantss avatar May 09 '24 05:05 giantss

@giantss @Hitesh548 @arisbartee @LinusU @emostar in ios on live app , my payment not worked, always getting CANCEL. error. purchaseErrorSubscription = FlutterInappPurchase.purchaseError.listen((purchaseError) {

anilthummar avatar Jun 18 '24 13:06 anilthummar

@anilthummar I have switched to the official component in_app_purchase

giantss avatar Jun 20 '24 10:06 giantss

@giantss Thanks for the feedback, I want to ask you why you switched to this library. i have used flutter_inapp_purchase library in my project, So I always getting below error, purchaseErrorSubscription = FlutterInappPurchase.purchaseError.listen((purchaseError) {

using in_app_purchase lib your issue have been fixed ?

anilthummar avatar Jun 20 '24 11:06 anilthummar

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 19 '24 01:09 github-actions[bot]

@anilthummar Judging from the current situation of this library, it will not be maintained in the future. The problems we reported will not be solved. I solved the problem I encountered after migration. The payment failure you encountered should be caused by other reasons, not the current library.

giantss avatar Sep 20 '24 03:09 giantss

@giantss @anilthummar

I also have some transactions error. Unfortunately I still couldn't track it in sandbox. All the issues are from production

Are you all still using this library or now switching to the official one?

Initially I was using the official one too but I couldn't get free trial working on the official library.

DusBekas avatar Nov 06 '24 03:11 DusBekas

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 12 '25 00:02 github-actions[bot]

Closes since 6.0.0.rc-x has been released!

hyochan avatar Aug 04 '25 03:08 hyochan