REST API

Add a New Payment Method

In your e-wallet app, use the
TMS
API to store the customer's payment method information in a payment instrument.
Call
/tms/v1/instrumentidentifiers
to create an instrument identifier for the card number.
The request returns a token that is unique for a specific card number. This can be used to track the use of the card across sales channels.
From the Create a New Account step, use the customer token you received in the call to create a new payment method. Call:
/tms/v2/customers/{customerTokenId}/payment-instruments
and pass the instrument identifier token, card type, and expiration date in the request.
If this is the first payment method, it becomes the customer's default.
Store the card expiration date and last 4 digits with the customer profile information in your database.
Add a new payment method