3. Initiate Pay
Once the merchant request has been verified, this API is used to safely handle payment requests by encrypting card data using AES and RSA encryption.
API Endpoints
Sample Request & Response
The following fields ought to be included in the request body:
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:
Sample code to encrypt ECardData
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