Apple Pay
Create Apple Pay Session
Changed onValidate an Apple Pay merchant session using Conekta's Apple Pay certificates. Call this endpoint from your backend with the validationURL received in the onvalidatemerchant event and return the response to the browser to complete the merchant validation.
This endpoint does not require authentication, it is meant to be called during the Apple Pay checkout flow.
post/apple_pay/session
Request
- Base URLhttps://api.conekta.io
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Accept-Language'es' | 'en'
Use for knowing which language to use
Request body
Example request
{
"validationURL": "https://apple-pay-gateway.apple.com/paymentservices/startSession",
"domain": "pay.conekta.io",
"source": "external",
"companyId": "merchant.io.conekta"
}Response
The validated Apple Pay merchant session.
Example response
{
"epochTimestamp": 1758222248547,
"expiresAt": 1758225848547,
"merchantSessionIdentifier": "SSHC1DDFEB554674D38992774400AE24AB1_916523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A943F0F94927C24",
"nonce": "b94448de",
"merchantIdentifier": "9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD",
"domainName": "pay.conekta.io",
"displayName": "Conekta",
"signature": "308006092a864886f70d010702a0803080020101310d300b06096086480165030402013080...",
"operationalAnalyticsIdentifier": "Conekta:9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD",
"retries": 0,
"pspId": "9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD"
}Changes
- info
endpoint added
- info