How to validate apple pay session via postman (with certificate)?

Hi all, I have a merchant id certificate (.cer format), and I'm trying to send such a request via postman:

POST https://apple-pay-gateway.apple.com/paymentservices/paymentSession

{
    "merchantIdentifier": "merchant.ecom.zain.sa",
    "displayName": "Zain",
    "initiative": "web",
    "initiativeContext": "merchant.ecom.zain.sa"
}

In the response I have

`Error: error:0900006e:PEM routines:OPENSSL_internal:NO_START_LINE`

Could you tell me if I'm doing something wrong, and do I even have an option to validate the Apple Pay session via Postman on Windows?

Replies

certificate (.cer format)

I have no idea about how to load an identity into Postman, but it looks like the error you are receiving is happening because the API or tool that you are using is expecting an identity (certificate and key) to be in PEM format and not in binary DER format. If that is not the case then it looks like you may be having issues loading your identity.

Regarding:

"initiativeContext": "merchant.ecom.zain.sa"

Make sure to use your verified domain here and not your Merchant ID. For example example.com.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com