mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for Paytrace
This commit is contained in:
parent
4f362f17ab
commit
2fa360df19
@ -137,10 +137,6 @@ class PayTraceCreditCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handle() {
|
handle() {
|
||||||
this.setupPayTrace().then((instance) => {
|
|
||||||
this.ptInstance = instance;
|
|
||||||
this.updatePayTraceLabels();
|
|
||||||
|
|
||||||
Array.from(
|
Array.from(
|
||||||
document.getElementsByClassName('toggle-payment-with-token')
|
document.getElementsByClassName('toggle-payment-with-token')
|
||||||
).forEach((element) =>
|
).forEach((element) =>
|
||||||
@ -166,6 +162,11 @@ class PayTraceCreditCard {
|
|||||||
'save-card--container'
|
'save-card--container'
|
||||||
).style.display = 'grid';
|
).style.display = 'grid';
|
||||||
document.querySelector('input[name=token]').value = '';
|
document.querySelector('input[name=token]').value = '';
|
||||||
|
|
||||||
|
this.setupPayTrace().then((instance) => {
|
||||||
|
this.ptInstance = instance;
|
||||||
|
this.updatePayTraceLabels();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
document
|
document
|
||||||
@ -179,7 +180,6 @@ class PayTraceCreditCard {
|
|||||||
|
|
||||||
return this.handlePaymentWithToken(e);
|
return this.handlePaymentWithToken(e);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user