Untitled

 avatar
pixerlabs
plain_text
2 years ago
691 B
2
Indexable
Never
jQuery(document).ready(function($){

    $('.payment_process').find('.button_action').click(function(e) {
        
        console.log("Prueba desde CMS");
    
        var payment_id = $(this).attr("payment_id");
        var payment_amount = $(this).attr("payment_amount");
    
        console.log(payment_id +' - '+ payment_amount);
 
        $('.payment_1').find('.action_form').html('<form target="_blank" name="form_payment_1" id="form_payment_1" method="POST" action="https://vinotecabp.azurewebsites.net"><input type="hidden" name="id_payment" value="payment_1" /><input type="hidden" name="amount" value="1000" /></form>');
         $('#form_payment_1').submit();
    
    });


});