File "checkout.min.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/rave-woocommerce-payment-gateway/assets/js/checkout.min.js
File size: 1.28 KB
MIME-type: text/plain
Charset: utf-8
jQuery(function(t){t.blockUI({message:"<p> Loading Payment Modal...</p>"});let n=!1;function r(e,a){let n="";t.each(a,function(e,a){n+='<input type="hidden" name="'+e+'" value="'+a+'">'}),t('<form action="'+e+'" method="POST">'+n+"</form>").appendTo(t(document.body)).submit()}var e={public_key:flw_payment_args.public_key,tx_ref:flw_payment_args.tx_ref,amount:flw_payment_args.amount,currency:flw_payment_args.currency,payment_options:flw_payment_args.payment_options,redirect_url:flw_payment_args.redirect_url,onclose:function(){t.unblockUI(),n?(t.blockUI({message:"<p> confirming transaction ...</p>"}),r(flw_payment_args.redirect_url+"?tx_ref="+flw_payment_args.tx_ref,{})):(t.blockUI({message:"<p> Canceling Payment ...</p>"}),window.location.href=flw_payment_args.cancel_url)},callback:function(e){var a=e.tx_ref;"successful"===e.status&&(n=!0,t.blockUI({message:"<p> confirming transaction ...</p>"}),r(flw_payment_args.redirect_url+"?txref="+a,e)),this.close()},meta:{consumer_id:flw_payment_args.consumer_id},customer:{email:flw_payment_args.email,phone_number:flw_payment_args.phone_number,name:flw_payment_args.first_name+" "+flw_payment_args.last_name},customizations:{title:flw_payment_args.title,description:flw_payment_args.description,logo:flw_payment_args.logo}};window.FlutterwaveCheckout(e)});