Payment Services Exception Unauthorized

We’re attempting to call the Apple Pay Web Merchant Registration API using our Platform Integrator flow and consistently receive 401 Unauthorized, despite successful TLS/mTLS.

Details: Endpoint: https://apple-pay-gateway-cert.apple.com/paymentservices/registerMerchant (POST) Payload: { "domainNames": ["breakerfy.com"], "encryptTo": "platformintegrator.ai.packman", "partnerInternalMerchantIdentifier": "merchant.ai.packman.1", "partnerMerchantName": "breakerfy", "merchantUrl": "https://breakerfy.com" } Domain association: URL: https://breakerfy.com/.well-known/apple-developer-merchantid-domain-association

What we tried: We created a Payment Platform Integrator ID (platformintegrator.ai.packman) We created a CertificateSigningRequest We used the certificate signing request to create an Apple Pay Platform Integrator Identity Certificate and downloaded the signed certificate. We exported the Private Key from keychain access in PKCS 12 format We converted both the private key and the signed certificate to PEM format We created a merchant id We used the converted keys to send requests to the API We received { "statusMessage": "Payment Services Exception Unauthorized", "statusCode": "401" }

we also tried curl with the original p12 file and also had no luck.

What could be the issue ?

Answered by DTS Engineer in 871398022

Hi @yamanlakis,

The partner internal merchant identifier is not registered in our systems. This is why your account is not authorized to use the Apple Pay Web Merchant Registration API. To complete the registration, you'll need to request access to the API once again by following the steps outlined in the documentation below:

Applying to use the registration API and configuring IDs

https://developer.apple.com/documentation/applepaywebmerchantregistrationapi/applying-to-use-the-registration-api-and-configuring-ids

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Hi @yamanlakis,

The partner internal merchant identifier is not registered in our systems. This is why your account is not authorized to use the Apple Pay Web Merchant Registration API. To complete the registration, you'll need to request access to the API once again by following the steps outlined in the documentation below:

Applying to use the registration API and configuring IDs

https://developer.apple.com/documentation/applepaywebmerchantregistrationapi/applying-to-use-the-registration-api-and-configuring-ids

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Payment Services Exception Unauthorized
 
 
Q