Rápido Pagos
Apple Pay

Create an Apple Pay merchant session

POST
/apple-pay/session

Requests a merchant session from the Apple Pay gateway named in validationURL, over mTLS with the Merchant Identity certificate. The service accepts only the Apple Pay gateway hosts, and the sandbox hosts only in development.

Request Body

The validation URL from the Apple Pay session

application/json
  1. body
validationURL*string

The validationURL of the onvalidatemerchant event that the Apple Pay session fired. Only its host is used, and it must be an Apple Pay gateway.

Length1 <= length
Example"https://apple-pay-gateway.apple.com/paymentservices/startSession"

Response Body

Merchant session for the Apple Pay payment sheet

application/json
  1. response

The opaque merchant session from Apple. Pass it unchanged to completeMerchantValidation.

[key: string]?unknown
Create an Apple Pay merchant session
curl -X POST 'https://api.rapidopagos.com/apple-pay/session' \  -H 'Content-Type: application/json' \  -d '{  "validationURL": "https://apple-pay-gateway.apple.com/paymentservices/startSession"}'
Example Response
{  "property1": null,  "property2": null}