Payment Flow
The overall process for an APM payment transaction is as follows:
- Initiate Payment – Your server sends an HTTP
POSTrequest to the APM payments endpoint with the required payment details (see below). - Process Response – Examine the API’s response:
- For redirect-based payment methods (e.g., PayPal or iDEAL): redirect the customer’s browser to the URL provided in
apmResponseData.redirectUrlto complete the payment. - For iframe-based payment methods: load the URL from
apmResponseData.iframeUrlin an on-page iframe to allow the customer to complete payment without leaving your site.
- For redirect-based payment methods (e.g., PayPal or iDEAL): redirect the customer’s browser to the URL provided in
- Receive Callback – Once the payment is completed (or if it fails/expires), Exirom sends a server-to-server callback to the
callbackUrlyou provided. This callback (webhook) contains the final transaction status and details (success, failure, amount, etc.). - Verify Status (Optional) – As an optional step, you can query the payment status directly by calling the
GET /payments/apm/info/{id}endpoint (where{id}is the transactionId returned in earlier steps. This can be used to double-check the transaction status or retrieve details if a callback was missed.
With this flow, the customer is guided through the necessary steps to complete payment using their chosen APM, and your system is kept informed of the outcome via the callback or direct queries.
Updated 8 days ago
