SmartForm parameters
The general parameters available for the smartForm are:
Parameter | Description |
---|---|
kr-form-token | Encrypted object allowing to initialize the smartForm with the transaction details. |
paymentMethods | When creating theformToken , this field is used for filtering the compatible payment methods offered by the merchant. |
kr-smart-form | Class that must be integrated for implementing the smartForm. |
kr-popin | It is associated with the kr-smart-form class and defines the display in pop-in mode. |
kr-card-form-expanded | It is associated with the kr-smart-form class and defines the display in list mode with embedded card. |
kr-no-card-logo-header | Attribute to hide card payment logos (Hide Card Payment Logos ) |
kr-smart-button | Class allowing you to display a button for highlighting a payment method. It is associated with the kr-payment-method attribute for selecting the desired payment method. (Links for highlighting a payment method or highlighting several payment methods ) |
kr-payment-method | Attribute for selecting a payment method. Check the table of the kr-payment-method attribute to see the possible values. |
kr-brands | Attribute allowing to select a payment method from card payment methods. See the table of the kr-brands attribute to check the available values. |
Table of kr-payment-method attribute
value | Description |
---|---|
CARDS | Selection of all card payment methods. |
Titre-Restaurant(*) cards | |
APETIZ | Selection of payment method Bimpli (ex Apetiz). |
EDENRED | Selection of payment method Ticket restaurant. |
SODEXO | Selection of payment method Sodexo. |
CHQ_DEJ | Selection of payment method Chèque déjeuner. |
Table of kr-brands attribute
Value the kr-brands
attribute to create a payment button among the card payment methods.
value | Description |
---|---|
CB | Selection of the CB network. |
VISA | Selection of the Visa brand. |
MASTERCARD | Selection of the Mastercard brand. |
MAESTRO | Selection of the Maestro payment method. |
VISA_ELECTRON | Selection of the Visa Electron payment method. |
AMEX | Selection of the American Express payment method. |
Then, add the kr-payment-method
attribute set to CARDS.
For example, generate a payment button for AMEX :
<div class="kr-smart-button" kr-brands="AMEX" kr-payment-method="CARDS"></div>