File "order-status.min.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-payments/assets/js/order-status.min.js
File size: 1.14 KB
MIME-type: text/plain
Charset: utf-8

jQuery((function(e){"use strict";window.wc_sb_order_status={xhr:!1,attempts:0,init:function(){this.checkPayment((function(a,t){var r=e("#order-status-checking"),_=e("#order-success"),n=e("#order-failed");switch(t.state){case"paid":r.hide(),_.show();break;case"failed":case"aborted":r.hide(),n.append("<p>"+t.message+"</p>"),n.show();break;default:if(window.wc_sb_order_status.attempts++,window.wc_sb_order_status.attempts>6)return;setTimeout((function(){window.wc_sb_order_status.init()}),1e4)}}))},checkPayment:function(a){return e(".woocommerce-order").block({message:WC_Gateway_Swedbank_Pay_Order_Status.check_message,overlayCSS:{background:"#fff",opacity:.6}}),e.ajax({type:"POST",url:WC_Gateway_Swedbank_Pay_Order_Status.ajax_url,data:{action:"swedbank_pay_check_payment",nonce:WC_Gateway_Swedbank_Pay_Order_Status.nonce,order_id:WC_Gateway_Swedbank_Pay_Order_Status.order_id,order_key:WC_Gateway_Swedbank_Pay_Order_Status.order_key},dataType:"json"}).always((function(){e(".woocommerce-order").unblock()})).done((function(e){a(null,e.data)}))}},e(document).ready((function(){window.wc_sb_order_status.init()}))}));
//# sourceMappingURL=order-status.min.js.map