1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Updates for paypal rest implementation

This commit is contained in:
David Bomba 2024-06-06 11:54:08 +10:00
parent 6a9dcdf4af
commit 84e7cfcdaf
4 changed files with 15 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -240,7 +240,7 @@
"src": "resources/js/setup/setup.js"
},
"resources/sass/app.scss": {
"file": "assets/app-2a1d3e58.css",
"file": "assets/app-f3b33400.css",
"isEntry": true,
"src": "resources/sass/app.scss"
}

View File

@ -1,4 +1,4 @@
<div wire:ignore.self class="@unless($form_only) container mx-auto grid grid-cols-12 @endunless mb-4 transitionduration-1000 ease-in-out h-500" data-ref="required-fields-container">
<div wire:ignore.self class="@unless($form_only) container mx-auto grid grid-cols-12 @endunless mb-4 transition ease-out duration-1000 h-500" data-ref="required-fields-container">
<div class="col-span-12 lg:col-span-6 lg:col-start-4 overflow-hidden @unless($form_only) bg-white shadow rounded-lg @endunless">
@unless($form_only)
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">

View File

@ -290,6 +290,18 @@
document.getElementById("token").value = token.value;
}
document.getElementById('errors').textContent = '';
document.getElementById('errors').hidden = true;
document.getElementById('pay-now-token').disabled = true;
document.querySelector('#pay-now-token > svg').classList.remove('hidden');
document.querySelector('#pay-now-token > svg').classList.add('justify-center');
document.querySelector('#pay-now-token > svg').classList.add('mx-auto');
document.querySelector('#pay-now-token > svg').classList.add('item-center');
document.querySelector('#pay-now-token > span').classList.add('hidden');
document.getElementById("gateway_response").value = JSON.stringify( {token: token.value, orderID: "{!! $order_id !!}"} );
document.getElementById("server_response").submit();