When integrating Apple Pay with Flow, this error typically indicates a misconfiguration in your Apple Pay setup. Verify the following, ensure that your SDK configuration (sandbox or production) matches the Apple Merchant ID you are using. For example:
-
Sandbox environment:
-
You must set the SDK environment to
sandbox. -
The API key in the
Authorization: Bearerheader must containsbox. -
Your API calls must be made to the sandbox URL:
api.sandbox.checkout.com. -
The merchant ID injected into the SDK must be the one associated with your sandbox certificate.
-
The same merchant ID must be enabled in your Xcode project's capabilities.
-
Production environment:
-
You must set the SDK environment to
production. -
The API key in the
Authorization: Bearerheader must not containsbox. -
Your API calls must be made to the production URL:
api.checkout.com. -
The merchant ID injected into the SDK must be the one associated with your production certificate.
-
The same merchant ID must be enabled in your Xcode project's capabilities.