This commit is contained in:
Lars Kusch 2022-12-17 06:47:43 +01:00
parent 01fbebb42e
commit fdafa04904
2 changed files with 34 additions and 28 deletions

View File

@ -42,6 +42,7 @@ class ProcessBACS {
location.href=document.querySelector('meta[name=stripe-redirect-url').content;
});}
else{
document.getElementById('pay-now').addEventListener('click', (e) => {
let token = document.querySelector('input[name=token]').value;
let payNowButton = document.getElementById('pay-now');
this.payNowButton = payNowButton;
@ -50,7 +51,8 @@ class ProcessBACS {
this.payNowButton.querySelector('span').classList.add('hidden');
this.stripe.confirmBecsDebitPayment(
document.querySelector('meta[name=pi-client-secret').content,
document.querySelector('meta[name=pi-client-secret')
.content,
{}
).then((result) => {
if (result.error) {
@ -59,6 +61,7 @@ class ProcessBACS {
return this.handleSuccess(result);
});
});
}
};
}

View File

@ -42,6 +42,7 @@ class ProcessBACS {
location.href=document.querySelector('meta[name=stripe-redirect-url').content;
});}
else{
document.getElementById('pay-now').addEventListener('click', (e) => {
let token = document.querySelector('input[name=token]').value;
let payNowButton = document.getElementById('pay-now');
this.payNowButton = payNowButton;
@ -50,7 +51,8 @@ class ProcessBACS {
this.payNowButton.querySelector('span').classList.add('hidden');
this.stripe.confirmBecsDebitPayment(
document.querySelector('meta[name=pi-client-secret').content,
document.querySelector('meta[name=pi-client-secret')
.content,
{}
).then((result) => {
if (result.error) {
@ -59,6 +61,7 @@ class ProcessBACS {
return this.handleSuccess(result);
});
});
}
};
}