1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Square payments

This commit is contained in:
= 2021-08-14 20:08:27 +10:00
parent 3119efa3da
commit 82a0a311cd

View File

@ -29,14 +29,14 @@
<script type="text/javascript" src="https://sandbox.web.squarecdn.com/v1/square.js"></script>.
<script>
const appId = "{{ $gateway->company_gateway->getConfigField('applicationId') }}";
const locationId = "{{ $gateway->company_gateway->getConfigField('locationId') }}";
async function initializeCard(payments) {
const card = await payments.card();
await card.attach('#card-container');
return card;
}
const appId = "{{ $gateway->company_gateway->getConfigField('applicationId') }}";
const locationId = "{{ $gateway->company_gateway->getConfigField('locationId') }}";
async function initializeCard(payments) {
const card = await payments.card();
await card.attach('#card-container');
return card;
}
document.addEventListener('DOMContentLoaded', async function () {
if (!window.Square) {