post https://komoju.com/api/v1/secure_tokens
Creates a SecureToken with the given credit card payment_details
or customer
ID.
There are two ways to create a SecureToken:
- Using
payment_details
with credit card information. - Using
customer
ID, which is a unique identifier for a customer created via the Customer: Create endpoint. Customer's saved payment details will be used aspayment_details
.
It is recommended to have a client application make this request directly so that sensitive payment information (e.g. credit card number) doesn't hit your server. Receiving credit card numbers requires your business to be PCI-DSS compliant. Once you create a secure token using a customer's credit card details, you can redirect the customer to the authentication url to perform 3DS authentication. Once a secure token has been authenticated, the secure token id can safely be sent to your server and used as payment_details
to a future KOMOJU API request.