mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for js
This commit is contained in:
parent
33764a4828
commit
aab55a9346
11
public/js/clients/payments/stripe-bacs.js
vendored
11
public/js/clients/payments/stripe-bacs.js
vendored
@ -50,9 +50,14 @@ class ProcessBACS {
|
||||
this.payNowButton.disabled = true;
|
||||
this.payNowButton.querySelector('svg').classList.remove('hidden');
|
||||
this.payNowButton.querySelector('span').classList.add('hidden');
|
||||
this.stripe.confirmBacsDebitPayment(
|
||||
document.querySelector('meta[name=pi-client-secret]').content, {
|
||||
payment_method: token}).then((result) => {
|
||||
this.stripe
|
||||
.confirmBacsDebitPayment(
|
||||
document.querySelector('meta[name=pi-client-secret')
|
||||
.content, {
|
||||
payment_method: document.querySelector('input[name=token]').value
|
||||
}
|
||||
)
|
||||
.then((result) => {
|
||||
if (result.error) {
|
||||
return this.handleFailure(result.error.message);
|
||||
}
|
||||
|
11
resources/js/clients/payments/stripe-bacs.js
vendored
11
resources/js/clients/payments/stripe-bacs.js
vendored
@ -50,9 +50,14 @@ class ProcessBACS {
|
||||
this.payNowButton.disabled = true;
|
||||
this.payNowButton.querySelector('svg').classList.remove('hidden');
|
||||
this.payNowButton.querySelector('span').classList.add('hidden');
|
||||
this.stripe.confirmBacsDebitPayment(
|
||||
document.querySelector('meta[name=pi-client-secret]').content, {
|
||||
payment_method: token}).then((result) => {
|
||||
this.stripe
|
||||
.confirmBacsDebitPayment(
|
||||
document.querySelector('meta[name=pi-client-secret')
|
||||
.content, {
|
||||
payment_method: document.querySelector('input[name=token]').value
|
||||
}
|
||||
)
|
||||
.then((result) => {
|
||||
if (result.error) {
|
||||
return this.handleFailure(result.error.message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user