4. Process Payment
The ProcessPayment request is used to initiate a payment process for a given ReferenceId.
Upon completing the 3DS authentication process, the user is redirected to the endpoint specified in the Acs_CallbackUrl parameter of the InitiatePay request. The merchant receives a response containing a form object at this endpoint. The merchant must verify that form.result equals "SUCCESS" and form.response.gatewayRecommendation equals "PROCEED" to determine whether to proceed with the payment process. If both conditions are satisfied, the merchant should call the ProcessPayment API with the specified parameters.
Upon receiving the response from the ProcessPayment API, the merchant must verify the errorCode to determine the next steps. If the errorCode is 0, indicating a successful API call, the merchant should parse the result object and verify that result.result equals "SUCCESS" and result.response.acquirerMessage equals "APPROVED". These conditions confirm a successful payment transaction.
Last updated
Was this helpful?