RU
Payment page templates

Standard templates

Standard templates are used to connect the default basic payment interface. Two options are available: InPay and eWallet. They are connected by calling the corresponding functions of the Payture.js library.

InPay interface

To use the InPay template with default parameters, call:

$ph.ready(function() {
    Payture.InPay({
        use_3ds2: {use_3ds2},
        use_3ds2_preauth: {use_3ds2_preauth}
    });
});
Download template

eWallet interface

To use the eWallet template with default parameters, use the following function:

$ph.ready(function() {
    Payture.eWalletPay({
        use_3ds2: {use_3ds2},
        use_3ds2_preauth: {use_3ds2_preauth}
    });
});
Download template

Configuration parameters

In addition to the basic parameters, the templates support extensive customization of the interface, texts, errors, external elements, payment methods, and button behavior.

The available parameters and values are listed below:

ParameterDefault valueDescription
LanguageRUTemplate language: RU / EN
CardHolderCustomerBy default, the field is hidden and Payture is passed. If the field is added to the template (via the CardHolderBlock parameter), leave this parameter empty
LogoUrl—Path to a custom logo

The VisibilitySettings block is a group of parameters that controls the display of individual interface elements. It lets you show and hide fields, buttons, and blocks. The available parameters are listed below.

ParameterDefault valueDescription
EMailBlockfalseEmail input field
CardHolderBlockfalseCardholder name input field
HeaderBlocktrueVisibility of the block with the Payture logo
FootnoteVisibilitytrueVisibility of the copyright line in the footer
PaytureConditionstrueVisibility of the terms line in the footer: "By clicking Pay, you agree to the terms of use of the service"
ProviderNametrueVisibility of the line with the provider name Payture next to the logo
ProviderDescriptiontrueVisibility of the line with the provider description Payment gateway next to the logo

Example of a call with configuration parameters:

$ph.ready(function() {
    Payture.InPay({
        Language: 'RU',
        CardHolder: 'Customer',
        LogoUrl: '',
        VisibilitySettings: {
            EMailBlock: true,
            CardHolderBlock: false,
            HeaderBlock: true,
            FootnoteVisibility: true,
            PaytureConditions: true
        }
    });
});