Make a Payment

In your e-wallet app, use the TMS API to retrieve the customer's payment details.
  1. To get the customer’s default shipping address, call:
    GET /tms/v2/customers/{customerTokenId}/shipping-address
    The first record is the default.
  2. To retrieve the customer's default payment method, call:
    GET /tms/v2/customers/{customerTokenId}/payment-instruments
    and read the first record, which is the default.
Finally, when the customer clicks the
Place Order
button, call:
POST /pts/v2/payments
passing in the customer token, payment instrument token, and shipping address token.
Make a payment
Back to top