3. Initiate Pay
After validating the merchant request, This API is used to process payment requests securely by encrypting card data using AES and RSA encryption.
API Endpoints
Sample Request & Response
The request body should include the following fields:
ReferenceId
string
15-digit reference id received in the validate requet response
MerchantId
string
Merchant code
ECardData
string
The encrypted card data encrypted using AES encryption with a 32-bit key. Explained below
ECardKey
string
ACS_CallbackURL
string
Explanation of the ECardData
Encryption Object
ECardData
Encryption ObjectThe ECardData
field in the request is an encrypted representation of the sensitive card details. The following explains the object that is encrypted using AES encryption before being included in the API request:
ACS_CallbackURL
Response Explaination
Upon receiving the response from the InitiatePay API, the merchant must verify the errorCode to determine the next steps. If the errorCode is 0, indicating a successful initiation, the merchant should parse the result object and render the HTML content provided in result.redirect.html to proceed with the 3DS authentication process.
Last updated
Was this helpful?