1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fixes for JS

This commit is contained in:
Lars Kusch 2022-12-16 15:00:54 +01:00
parent b16b46204a
commit 1a37049ff8
2 changed files with 5 additions and 5 deletions

View File

@ -18,10 +18,10 @@ class ProcessBACS {
setupStripe = () => {
if (this.stripeConnect){
// this.stripe.stripeAccount = this.stripeConnect;
// this.stripe.stripeAccount = this.stripeConnect;
this.stripe = Stripe(this.key, {
stripeAccount: this.stripeConnect,
this.stripe = Stripe(this.key, {
stripeAccount: this.stripeConnect,
});
}
@ -40,7 +40,7 @@ class ProcessBACS {
document.getElementById('pay-now').disabled = true;
document.querySelector('#pay-now > svg').classList.remove('hidden');
document.querySelector('#pay-now > span').classList.add('hidden');
location.href=document.querySelector('meta[name=stripe-redirect-url]').content;
location.href=document.querySelector('meta[name=stripe-redirect-url').content;
});
};
}

View File

@ -40,7 +40,7 @@ class ProcessBACS {
document.getElementById('pay-now').disabled = true;
document.querySelector('#pay-now > svg').classList.remove('hidden');
document.querySelector('#pay-now > span').classList.add('hidden');
location.href=document.querySelector('meta[name=stripe-redirect-url]').content;
location.href=document.querySelector('meta[name=stripe-redirect-url').content;
});
};
}