mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Square payments
This commit is contained in:
parent
3119efa3da
commit
82a0a311cd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user