Processing a credit card payment
For general information about the payment process flow, see Payment flow process (Merchant API).
To process a credit card payment:
- Call createPaymentRequest with the required parameters.
- Redirect your customer to the URL from the XML response of the createPaymentRequest method call. This utilises the callback_form.
- If the credit card is enrolled with 3D Secure, the customer is redirected to the relevant 3D secure page to verify the card, after the credit card details have been entered. This is carried out by AltaPay.
- If the payment is successful, the response is sent to the ok page (callback_ok).
If the payment fails, the response is sent to the fail page (callback_fail).n.
Ensure that the following returned XML parameters correspond to the order that was placed: Result, ReservedAmount, CapturedAmount, RefundedAmount, and TransactionStatus.
If the payment was successful, you can now capture or release it using the Merchant Information Interface, or the captureReservation or releaseReservation API methods.