File "payment-url.min.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-checkout/assets/js/payment-url.min.js
File size: 1.89 KB
MIME-type: text/plain
Charset: utf-8

jQuery((function(n){"use strict";window.wc_sb_payment_url={js_url:null,payment_url:WC_Sb_Payment_Url.payment_url,paymentMenu:null,isPaymentMenuLoaded:!1,xhr:!1,isLocked:!1,initPaymentJS:function(e,o){void 0===o&&(o=function(){}),window.hasOwnProperty("payex")&&window.payex.hasOwnProperty("hostedView")&&(void 0!==window.payex.hostedView.paymentMenu&&window.payex.hostedView.paymentMenu().close(),n("#payment-swedbank-pay-checkout iframe").remove()),n("script[src*='px.paymentmenu.client']").remove(),wc_sb_common.loadJs(e,(function(){n("#payment-swedbank-pay-checkout iframe").remove(),n("#payment").hide(),wc_sb_payment_url.initPaymentMenu("payment-swedbank-pay-checkout"),o()}))},initPaymentMenu:function(n,e){console.log("initPaymentMenu"),void 0===e&&(e=function(){}),this.paymentMenu=window.payex.hostedView.paymentMenu({container:n,culture:WC_Sb_Payment_Url.culture,style:WC_Sb_Payment_Url.paymentMenuStyle?JSON.parse(WC_Sb_Payment_Url.paymentMenuStyle):null,onApplicationConfigured:function(n){console.log("onApplicationConfigured"),console.log(n),wc_sb_payment_url.isPaymentMenuLoaded=!0,e(null)},onPaymentMenuInstrumentSelected:function(n){console.log("onPaymentMenuInstrumentSelected"),console.log(n)},onPaymentCreated:function(){console.log("onPaymentCreated")},onPaymentCompleted:function(n){console.log("onPaymentCompleted"),console.log(n),self.location.href=n.redirectUrl},onPaymentCanceled:function(n){console.log("onPaymentCanceled"),console.log(n),wc_sb_common.logError("payment-menu-cancel",n)},onPaymentFailed:function(n){console.log("onPaymentFailed"),console.log(n),wc_sb_common.logError("payment-menu-failed",n)},onError:function(n){wc_sb_common.logError("payment-menu-error",n),e(n)}}),this.paymentMenu.open()}},n(document).ready((function(){wc_sb_payment_url.initPaymentJS(WC_Sb_Payment_Url.payment_url,(function(){console.log("Payment url has been loaded.")}))}))}));
//# sourceMappingURL=payment-url.min.js.map