ym88659208ym87991671
JS Code block | Documentation for developers

JS Code block

Last updated on April 10, 2024

English version of the documentation is under development.

This block is designed to execute arbitrary JavaScript code in the script.

The code must be entered in the JS Code field.

Unlike with other blocks, when calling variables in the JavaScript code of the JS Code block, you must specify the full path to the variable:

$session.<variable name>

The logic set with the JS Code block can also be implemented with the Code script tag.

You can also use the JS Code block to connect the payment for products feature in the smartapp.

Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.