Start a sale transaction

circle-info

Before you start a sale transaction in mobile app using the mobile transactions APIarrow-up-right endpoint, make sure you have the following:

API keyarrow-up-right issued by Xplor Pay.

Mobile JSON Web Token (mobilejwt) returned by the successfulTransactionToken method using the JavaScript SDK integration.

To use a multi-use or durable token when starting a sale transaction:

  1. Add the token ID to the card field in the request body when calling the transactions APIarrow-up-right endpoint to start a sale transaction.

{
    "type": "sale",
    "card": "1100001539262421111",
    "amount": "1.00"
}
  1. Use the POST method to call the rest/v2/transactions/sale endpoint.

The API endpoint returns the response.

circle-info

See Start a sale transaction endpointarrow-up-right response for more information.

Last updated

Was this helpful?