Start a sale transaction

Before you start a sale transaction in mobile app using the mobile transaction API endpoint, make sure you have the following:

API key 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 API 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.

See Start a sale transaction endpoint response for more information.

Last updated

Was this helpful?