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

fix stripe

This commit is contained in:
Benjamin Beganović 2020-10-09 12:03:12 +02:00
parent 7f31d076b6
commit bdce885290

View File

@ -58,7 +58,7 @@ class ProcessStripePayment {
completePaymentWithoutToken() {
let payNowButton = document.getElementById('pay-now');
this.payNowButton = payNowButton;
this.payNowButton.disabled = true;
this.payNowButton.querySelector('svg').classList.remove('hidden');
@ -73,10 +73,6 @@ class ProcessStripePayment {
},
})
.then((result) => {
document
.getElementById('processing-overlay')
.classList.add('hidden');
if (result.error) {
return this.handleFailure(result.error.message);
}