Skip to main content
Question

Purchase fails and appstore rejection on macos.


Forum|alt.badge.img

I even try to purchase in debug sometime its successful sometime it fails and appstore reviewer raises same objection here is the error i get on macOS.

Received error that does not have a corresponding StoreKit Error: Error Domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase" UserInfo={AMSFailureReason=Server canceled the purchase, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=5CE91E9CB360, AMSDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={
    "cancel-purchase-batch" = 1;
    customerMessage = "Unauthorized_message";
    failureType = "";
    "m-allowed" = 0;
    pings =     (
    );
}, NSDebugDescription=Purchase Failed Server canceled the purchase}

Received error that does not have a corresponding StoreKit Error: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={client-environment-type=Sandbox, NSUnderlyingError=0x6000026468b0 {Error Domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase" UserInfo={AMSFailureReason=Server canceled the purchase, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=5CE91E9CB360, AMSDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={
    "cancel-purchase-batch" = 1;
    customerMessage = "Unauthorized_message";
    failureType = "";
    "m-allowed" = 0;
    pings =     (
    );
}, NSDebugDescription=Purchase Failed Server canceled the purchase}}}


Purchase did not return a transaction: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={client-environment-type=Sandbox, NSUnderlyingError=0x6000026468b0 {Error Domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase" UserInfo={AMSFailureReason=Server canceled the purchase, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=5CE91E9CB360, AMSDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={
    "cancel-purchase-batch" = 1;
    customerMessage = "Unauthorized_message";
    failureType = "";
    "m-allowed" = 0;
    pings =     (
    );
}, NSDebugDescription=Purchase Failed Server canceled the purchase}}}

ERROR: 🍎‼️ There was a problem with the App Store. This could also indicate the purchase dialog was cancelled.


 

ERROR: đź’° Product purchase for 'pdf_merger_yearly' failed with error: PurchasesError(error: There was a problem with the App Store. This could also indicate the purchase dialog was cancelled., userInfo: ["source_file": "RevenueCat/StoreKitError+Extensions.swift:43", "readable_error_code": "STORE_PROBLEM", "source_function": "asPurchasesError", "NSLocalizedDescription": "There was a problem with the App Store. This could also indicate the purchase dialog was cancelled.", "NSUnderlyingError": StoreKit.StoreKitError.unknown])

 

4 replies

Forum|alt.badge.img

I noticed if I “Clear Purchase History” in appstore connect I am able to purchase. How do I explain this to app reviewer?


  • New Member
  • 1 reply
  • March 29, 2025

I have similar problem  and it appeared yesterday, and before that everything worked : 

domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase" UserInfo={AMSFailureReason=Server canceled the purchase, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=.., AMSDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={

    "cancel-purchase-batch" = 1;

    customerMessage = "Unauthorized_message";

    failureType = "";

    "m-allowed" = 0;

    pings =     (

    );

}, NSDebugDescription=Purchase Failed Server canceled the purchase}}}

 

 

but I looked at the official website of the sandbox services - there are no problems https://developer.apple.com/system-status/  , so what is the problem?


Forum|alt.badge.img+4
  • New Member
  • 3 replies
  • March 30, 2025

I have the exact issue. Currently only happens to In-App Purchases. Subscriptions work.


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 277 replies
  • April 4, 2025

Hi all, sorry you’ve run into this. This sounds like general flakiness in Apple’s sandbox environment - there are regular outages and sometimes purchases can get hung up in their system. Most of the time this error is due to sandbox downtime, but you can read about all the causes for this error in our guide on error handling here: https://docs.revenuecat.com/docs/errors#--store_problem

The problems mentioned are consistent with what we typically hear about in the sandbox environment. Sometimes deleting/reinstalling the app, creating a new sandbox tester account, or waiting 24 hours is enough to resolve this issue. As long as you're able to successfully make some purchases correctly, I would expect production purchases to function as expected.

That said, does this happen to every attempted purchase of an In-App Purchase ​@Stackwares? Or is this intermittent? Also, you mentioned that Subscriptions work - do they work consistently for you, or also intermittently?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings