Synchronous Payment

Terminal Agent expose synchronous payment request call that reduce the integration time and logics.

Usage Flow:

  1. Call POST request to: http://localhost:8003/api/transactions/init/sync Use the same schema as - Create a transaction

  2. DeviceId field is not required - Terminal agent will append it automatically

  3. Cancelling the payment request can be done using cancelling the HTTP request from #1

  4. On final result (Approve, timeout or Cancel) - you will get response to this request

Example

URL: http://localhost:8003/api/transactions/init/sync

Request Body:

{
    "amount": 100,
    "timeOut": 500,
    "currency": "USD",
    "isCent": true
} 

Response body:

Last updated

Was this helpful?