Configuring Hosted Payment Page Using Methods
Refer to the following table to configure the payment page on your website:
addToken(token)
Add a customer saved token for the “Select Saved Card” option configuration.
token
token
- string
This includes the value of a customer saved token.
-
-
token
cardType
- string
This includes type of the card specified in a customer saved token.
-
-
token
description
- string
This includes additional details described in a customer saved token. This description helps customers select a saved card for future transactions.
For example, a customer might describe a saved card as “Business travel card” for convenience.
If the customer leaves the description blank, the customer saved token displays “Card ending in ####,” where “####” is the last four digits of the saved card.
addTokens(tokens)
Add a customer saved tokens for the “Select Saved Card” option configuration.
None
token
- Array
This includes an array of token objects to add multiple tokens and save multiple cards at once.
getProperty(property)
Get a property of Clearent’s Hosted Payment Page.
None
property
- string
This includes the property name.
payButton(obj)
Add the Pay Now button link that opens the Payment Page.
obj
None
This includes a JSON-formatted object of properties to add the Pay Now button.
refreshPaymentForm()
Refresh the payment page by running all the form paint events that normally occur when customers change the payment type (ACH or card).
None
None
None
setProperty(property, value)
Set a property to Clearent’s Hosted Payment Page.
None
property
- string
This includes the property name.
-
-
None
value
- string
This includes the value of the property.
Last updated