On This Page
REST API
Make a Payment
In your e-wallet app, use the
TMS
API to retrieve the customer's
payment details.- To get the customer’s default shipping address, call:GET /tms/v2/customers/{customerTokenId}/shipping-addressThe first record is the default.
- To retrieve the customer's default payment method, call:GET /tms/v2/customers/{customerTokenId}/payment-instrumentsand 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.