Widget configuration
The widget’s colors can be customized with a request to the API. All of the below parameters must be a hexadecimal color code.
The widget configuration object
Fields | |
---|---|
mode | string The mode of the application token that is set on the widget. |
recurring_token_privilege | string The recurring token privileges of the store. One of none , bounded , or infinite . |
name | string The store’s name. |
card_configuration.enabled | boolean Whether cards are enabled as a payment method on this store. |
card_configuration.debit_enabled | boolean Whether debit cards are accepted. |
card_configuration.prepaid_enabled | boolean Whether credit cards are accepted. |
card_configuration.forbidden_card_brands | array[string] A list of card brands that are not allowed for use by this store. |
card_configuration.allowed_countries_by_ip | array[string] A list of countries whose IP addresses are not allowed to make charges. |
card_configuration.foreign_cards_allowed | boolean Whether foreign cards are accepted. A foreign card is a card whose country is not the same as the store’s country. |
card_configuration.fail_on_new_email | boolean Whether to allow cards that have been previously used with a specific email address, be rejected if a different email address is used. |
card_configuration.card_limit.amount | number The amount to limit per card for the defined duration. |
card_configuration.card_limit.currency | string The currency to that the amount is defined in. |
card_configuration.card_limit.duration | string (ISO-8601) The duration in which to compare with the amount. |
card_configuration.allow_empty_cvv | boolean Whether to enable CVV checking for card charges. |
qr_scan_configuration.enabled | boolean Whether QR codes are usable as a payment method on this store. |
qr_scan_configuration.forbidden_qr_scan_gateways | array[string] A list of payment gateways that will not be used for processing QR code payments. |
convenience_configuration.enabled | boolean Whether convenience store payments are usable as a payment method on this store. |
logo_url | string A URI pointing to an image file that represents the store’s logo. |
widget_configuration.colors.main_background | string (HexColor) Main background color. |
widget_configuration.colors.secondary_background | string (HexColor) Secondary background color. |
widget_configuration.colors.main_color | string (HexColor) Main color. |
widget_configuration.colors.primary_text | string (HexColor) Primary text color. |
widget_configuration.colors.secondary_text | string (HexColor) Secondary text color. |
widget_configuration.colors.base_text | string (HexColor) Base text color. |