<script src="https://forma.tinkoff.ru/static/onlineScript.js"></script>
<script>
$( document ).ready(function() {
let tkf1 = `tinkoff.createDemo(
{
sum: 100000,
items: [{name: 'iphone 11', price: 100000, quantity: 1}],
demoFlow: 'sms',
promoCode: 'installment_0_0_4_4,5',
shopId: 'e4e43cb1-7971-4e14-86c1-d5c007931e1d',
showcaseId: '54035422-3a1c-4b16-8254-f150e8aa8884',
},
{view: 'modal'}
)`;
$('.tkf-1 .tn-atom').attr('onclick', tkf1 );
let tkf2 = `tinkoff.createDemo(
{
sum: 50000,
items: [{name: 'iphone 10', price: 50000, quantity: 1}],
demoFlow: 'sms',
promoCode: 'installment_0_0_12_11,5',
shopId: 'e4e43cb1-7971-4e14-86c1-d5c007931e1d',
showcaseId: '54035422-3a1c-4b16-8254-f150e8aa8884',
},
{view: 'modal'}
)`;
$('.tkf-2 .tn-atom').attr('onclick', tkf2 );
});
</script>