Custom Attributes
Provide custom_attributes
value if you want to customize form behaviour. This value (if provided) must be valid json.
Currently we support following keys:
installments_config
fields_config
Example:
Installments Config
Used to customize installments selection after user's card number input.
This extension can be used to fulfil contract between merchant and buyer, where buyer can only pay with one of supported card brands (provided in rules list) by selecting installments from min_installments to max_installments defined in installments config.
Types:
InstallmentConfig
type = object
properties
rules
type =
Array<InstallmentsConfigRule>
description = includes one or more installments config rule. Rule's brand must be unique per
rules
array. This means you cannot include multiple brand = 'brand' rules.
InstallmentsConfigRule
type = object
properties
brand
type = string
description = one of
visa
,master
,maestro
,diners
,amex
min_installments
type = number, integer
description = min installments, must be < than max_installments
max_installments
type = number, integer
description = max installments, must be > than min_installments
Installments config example:
Usage example
Requirements
installments are enabled in merchant's profile
merchant's acquiring account is enabled for installments
If you need helping enabling installments contact support@monri.com
Example steps
Set custom attributes field to
Submit prepared data
Enter
visa
ormaster
card number incard number
fieldInstallments selection is updated using rules provided in installments config. If
visa
is entered installments selection isone time payment (jednokratno)
and then from2 to 12
installments. Ifmaster
is entered installments selection isone time payment (jednokratno)
and then from12 to 24
installmentsSelect desired number of installments
Proceed with payment
Payment completed
Enter
amex (eg 3704 387472 13977)
incard number
fieldinstallments selection is only
one time payment - jednokratno
appropriate error message is shown -
Card 'amex' not supported
payment is disabled
Fields Config
Used to customize installments selection after user's card number input.
This extension can be used to fulfil contract between merchant and buyer, where buyer can only pay with one of supported card brands (provided in rules list) by selecting installments from min_installments to max_installments defined in installments config.
Types:
FieldsConfig
type = object
properties
fields
type =
Array<FieldConfig>
description = includes one or more field configs
FieldConfig
type = object
properties
name
type = string
description = one of
ch_email
,ch_full_name
readonly
type = boolean
description =
true
orfalse
. Field is readonly for input only if initial value is provided and valid
Fields config example:
Usage example
Example steps
Set custom attributes field to
Submit prepared data
Inputs for email and full name (if provided) are readonly
Last updated