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

Make square postal code optional

This commit is contained in:
David Bomba 2022-08-12 10:15:38 +10:00
parent b8f76691fa
commit cbc94a35fa
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class SquareCreditCard {
currencyCode: document.querySelector('meta[name=currencyCode]')
.content,
intent: 'CHARGE',
postalCode: document.querySelector('meta[name=postal_code_required]')
postalCode: document.querySelector('meta[name=postal_code_required]').content
};
const verificationResults = await this.payments.verifyBuyer(

View File

@ -7,7 +7,7 @@
<meta name="square_contact" content="{{ json_encode($square_contact) }}">
<meta name="amount" content="{{ $amount }}">
<meta name="currencyCode" content="{{ $currencyCode }}">
<meta name="postal_code_required" content="{{ $postal_code_required }}"?
<meta name="postal_code_required" content="{{ (bool)$postal_code_required }}"?
@endsection