1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +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 type="text/javascript" src="https://sandbox.web.squarecdn.com/v1/square.js"></script>.
<script> <script>
const appId = "{{ $gateway->company_gateway->getConfigField('applicationId') }}"; const appId = "{{ $gateway->company_gateway->getConfigField('applicationId') }}";
const locationId = "{{ $gateway->company_gateway->getConfigField('locationId') }}"; const locationId = "{{ $gateway->company_gateway->getConfigField('locationId') }}";
async function initializeCard(payments) { async function initializeCard(payments) {
const card = await payments.card(); const card = await payments.card();
await card.attach('#card-container'); await card.attach('#card-container');
return card; return card;
} }
document.addEventListener('DOMContentLoaded', async function () { document.addEventListener('DOMContentLoaded', async function () {
if (!window.Square) { if (!window.Square) {