diff --git a/public/js/clients/payment_methods/authorize-authorize-card.js b/public/js/clients/payment_methods/authorize-authorize-card.js index 83c12f820d..65c34443fe 100644 --- a/public/js/clients/payment_methods/authorize-authorize-card.js +++ b/public/js/clients/payment_methods/authorize-authorize-card.js @@ -142,8 +142,6 @@ var AuthorizeAuthorizeCard = /*#__PURE__*/function () { }, { key: "responseHandler", value: function responseHandler(response) { - console.log("responseHandler"); - if (response.messages.resultCode === "Error") { var i = 0; @@ -152,24 +150,13 @@ var AuthorizeAuthorizeCard = /*#__PURE__*/function () { i = i + 1; } } else if (response.messages.resultCode === "Ok") { - console.log("else"); // return this.paymentFormUpdate(response.opaqueData); - // - - document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor; - document.getElementById("dataValue").value = opaqueData.dataValue; + document.getElementById("dataDescriptor").value = response.opaqueData.dataDescriptor; + document.getElementById("dataValue").value = response.opaqueData.dataValue; document.getElementById("server_response").submit(); } return false; } - }, { - key: "paymentFormUpdate", - value: function paymentFormUpdate(opaqueData) { - console.log("payment form update"); - document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor; - document.getElementById("dataValue").value = opaqueData.dataValue; - document.getElementById("server_response").submit(); - } }, { key: "handle", value: function handle() { diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 0aef4cd4c9..cb03c0139f 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -3,7 +3,7 @@ "/css/app.css": "/css/app.css?id=b4f28bc71925ec9b1f74", "/js/clients/invoices/action-selectors.js": "/js/clients/invoices/action-selectors.js?id=c67520bd431448c04e4d", "/js/clients/invoices/payment.js": "/js/clients/invoices/payment.js?id=03cd8e076e822e0a2ecc", - "/js/clients/payment_methods/authorize-authorize-card.js": "/js/clients/payment_methods/authorize-authorize-card.js?id=1bb0d7320d7620a48ade", + "/js/clients/payment_methods/authorize-authorize-card.js": "/js/clients/payment_methods/authorize-authorize-card.js?id=b6d5731911467d58897d", "/js/clients/payment_methods/authorize-stripe-card.js": "/js/clients/payment_methods/authorize-stripe-card.js?id=420e22ba244289dd75f8", "/js/clients/payments/process.js": "/js/clients/payments/process.js?id=16971f5d097fd5891500", "/js/clients/quotes/action-selectors.js": "/js/clients/quotes/action-selectors.js?id=6c09099ad5510550993d", diff --git a/resources/js/clients/payment_methods/authorize-authorize-card.js b/resources/js/clients/payment_methods/authorize-authorize-card.js index aa01f95783..a0361823f7 100644 --- a/resources/js/clients/payment_methods/authorize-authorize-card.js +++ b/resources/js/clients/payment_methods/authorize-authorize-card.js @@ -44,7 +44,7 @@ class AuthorizeAuthorizeCard { } responseHandler(response) { -console.log("responseHandler"); + if (response.messages.resultCode === "Error") { var i = 0; while (i < response.messages.message.length) { @@ -56,24 +56,16 @@ console.log("responseHandler"); } } else if(response.messages.resultCode === "Ok"){ - console.log("else"); - // return this.paymentFormUpdate(response.opaqueData); - // - document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor; - document.getElementById("dataValue").value = opaqueData.dataValue; + + document.getElementById("dataDescriptor").value = response.opaqueData.dataDescriptor; + document.getElementById("dataValue").value = response.opaqueData.dataValue; document.getElementById("server_response").submit(); } return false; } - paymentFormUpdate(opaqueData) { - console.log("payment form update"); - document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor; - document.getElementById("dataValue").value = opaqueData.dataValue; - document.getElementById("server_response").submit(); - } handle() {