Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fromName = $.base64.encode($('#voucherName').val())
- $.ajax({
- url: frontend_ajax_object.ajaxurl,
- type: "POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- data: 'action=wpgv_doajax_pdf_save_func&nonce='+nonce+'&template='+templates_id+'&for='+forName+'&from='+fromName+'&value='+voucherValue+'&message='+message+'&expiry='+expiry+'&code='+code+'&firstname='+firstName+'&lastname='+lastName+'&email='+email+'&address='+address+'&pincode='+pincode+'&paymentmethod='+paymentMethod,
- success: function(a) {
- window.location.replace(a);
- },
- error: function() {
- alert('Error occured');
- }
- });
- $from = sanitize_text_field(base64_decode($_POST['from']));
Add Comment
Please, Sign In to add comment