POST Payment Authentication Setup
Prepares strong-customer-authentication for a payment that has already been initialized — typically the device fingerprinting step a 3-D Secure check runs before the customer sees a challenge.
Only some payment processors need this, and the initialization response tells you: call it when you were given an action that points here. PAR Pay does not use it.
It runs before Authorize Wallet Payment, and the contents of auth_info and of the returned additional_info are defined by the processor.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringpayment
_init _hash requiredThe hash of the payment being set up. It must still be pending.
- Type: objectauth
_info Processor-specific setup data.
Responses
- application/json
- 400
The hash is unknown or no longer pending, the processor does not support this step, or it rejected the setup.
curl https://api-public-demo.menu.app/api/payment-processors/auth-setup \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"payment_init_hash": "032878b199f90e13e1bdce036e00f157",
"auth_info": {}
}'
{
"status": "OK",
"code": 200,
"data": {
"payment_processor_type_id": 16,
"payment_processor_id": "3c07ddd3-925e-4549-b6a3-ec5cec38a0dd",
"payment_init_hash": "032878b199f90e13e1bdce036e00f157",
"additional_info": {
"device_data_collection_url": "https://centinelapistag.cardinalcommerce.com/V1/Cruise/Collect",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
}
}
}Setup completed.
