dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 236 forks source link

An unknown or unexpected error has occured. Please try again later. #485

Closed matifdeveloper closed 1 month ago

matifdeveloper commented 2 months ago

Version of flutter_inapp_purchase

5.6.1

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

purchased success

Actual behavior

When I call the requestSubscription method on the iPad for purchasing, I receive the following message in error listener: "An unknown or unexpected error has occurred. Please try again later."

<SKPaymentQueue: 0x2818840a0>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x2814ffc90 {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}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}

Tested environment (Emulator? Real Device?)

Real device

anilthummar commented 2 months ago

Version of flutter_inapp_purchase

5.6.1

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

purchased success

Actual behavior

When I call the requestSubscription method on the iPad for purchasing, I receive the following message in error listener: "An unknown or unexpected error has occurred. Please try again later."

<SKPaymentQueue: 0x2818840a0>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x2814ffc90 {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}}, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}

Tested environment (Emulator? Real Device?)

Real device

@matifdeveloper have you got any solution ?

matifdeveloper commented 2 months ago

@anilthummar no