mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #7370 from beganovich/paytrace-form
Fixes for PayTrace
This commit is contained in:
commit
f571a96082
@ -50,7 +50,7 @@
|
|||||||
@include('portal.ninja2020.gateways.includes.save_card')
|
@include('portal.ninja2020.gateways.includes.save_card')
|
||||||
|
|
||||||
@component('portal.ninja2020.components.general.card-element-single')
|
@component('portal.ninja2020.components.general.card-element-single')
|
||||||
<div class="w-screen items-center" id="paytrace--credit-card-container">
|
<div class="items-center" id="paytrace--credit-card-container">
|
||||||
<div id="pt_hpf_form"></div>
|
<div id="pt_hpf_form"></div>
|
||||||
</div>
|
</div>
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
@ -70,9 +70,12 @@
|
|||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||||
|
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
||||||
|
|
||||||
if (toggleWithToken) {
|
if (toggleWithToken) {
|
||||||
toggleWithToken.click();
|
toggleWithToken.click();
|
||||||
|
} else if (toggleWithCard) {
|
||||||
|
toggleWithCard.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user