diff --git a/resources/js/clients/payment_methods/authorize-authorize-card.js b/resources/js/clients/payment_methods/authorize-authorize-card.js index 89b45482041b..9af8543c825d 100644 --- a/resources/js/clients/payment_methods/authorize-authorize-card.js +++ b/resources/js/clients/payment_methods/authorize-authorize-card.js @@ -66,11 +66,6 @@ class AuthorizeAuthorizeCard { } handle() { - //this.handleFormValidation(); - - // At this point as an small API you can request this.form.valid to check if input elements are valid. - // Note: this.form.valid will not handle empty fields. - this.cardButton.addEventListener("click", () => { this.cardButton.disabled = !this.cardButton.disabled; this.handleAuthorization(); diff --git a/resources/js/clients/payments/checkout.com.js b/resources/js/clients/payments/checkout.com.js index 1d4d4de59002..f00797a9628b 100644 --- a/resources/js/clients/payments/checkout.com.js +++ b/resources/js/clients/payments/checkout.com.js @@ -23,7 +23,7 @@ window.CKOConfig = { document.querySelector( 'input[name="store_card"]' - ).value = document.getElementById('store-card-checkbox').checked ? 1 : 0; + ).value = document.querySelector('input[name=token-billing-checkbox]:checked').value; document.getElementById('server-response').submit(); }, diff --git a/resources/views/portal/ninja2020/gateways/checkout/credit_card.blade.php b/resources/views/portal/ninja2020/gateways/checkout/credit_card.blade.php index 0c0f85f5fdd7..4c97ad520b6f 100644 --- a/resources/views/portal/ninja2020/gateways/checkout/credit_card.blade.php +++ b/resources/views/portal/ninja2020/gateways/checkout/credit_card.blade.php @@ -84,12 +84,31 @@ @else -