Support Services

Forte Checkout - Create a Token

To create a token in Checkout, merchants must pass the following parameters in their button code:

save_token=true
customer_token=""
payment_token=""

Parameters

Parameter

Description

Attributes

Type

save_token

Use one of the following values for this parameter:

 

a. true = If the transaction completes, Checkout will create and save both customer and payment method tokens.


b. false = Checkout will not create or save the customer and payment method tokens.*

 

NOTE: For scheduled transactions, the merchant

must pass predefined customer and/or payment method tokens or set save_token=true.

N

bool

customer_token

An alphanumeric ID used to reference a customer. Checkout accepts/returns a string for this parameter.

 

[max length=26]

N

string

paymethod_token

An alphanumeric ID used to reference stored payment information (card or echeck) for a customer. Checkout accepts/returns a string for this parameter.

 

[max length=26]

N

string


https://developers.forte.net/forte-checkout-v2-auth/#elementor-toc__heading-anchor-16


Forte returns the customer and payment tokens to the merchant in the callback message like the one displayed below:

{"event":"success","method":"schedule","request_id":"5861c6fc-77ec-4ccd-ddf1-4aaf0eb309b2","version_number":"1.0","trace_number": "2648daca-bf23-4a1b-a789-44aa011e0ac6","customer_token":"10047617","payment_token":"14554238","total_amount":"5.00","signature": "31aa8d43c7f65092fcba9a0506b48dfd","utc_time":"635210891035249339","hash_method":"md5"}


NOTE:

  • Scheduling parameters require the merchant to pass predefined customer and payment tokens or set save_token=true.
  • When passing a customer token or creating a schedule, the shipping address can only be edited; a new address cannot be added.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.