Untitled

 avatar
pixerlabs
javascript
2 years ago
544 B
1
Indexable
Never
jQuery(document).ready(function($) {
  var $ = jQuery;
 
  $('.payment_process').find('.button_action').click(function(e) {
    var payment_id = $(this).attr("payment_id");
    var payment_amount = $(this).attr("payment_amount");
 
    $('.' + payment_id).find('.action_form').html('<form target="_blank" name="form_' + payment_id + '" id="form_' + payment_id + '" method="POST" action="https://vinotecabp.azurewebsites.net"><input type="hidden" name="token_ws" value="token" /></form>');
    $('#form_' + payment_id).submit();
 
 });