Make square postal code optional
This commit is contained in:
parent
b8f76691fa
commit
cbc94a35fa
2 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue