From 8e8414ab498a6fcfee423a81294789769b68305f Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Sun, 2 Jun 2019 16:43:37 +0100 Subject: [PATCH 1/2] View credit card: send more billing data to Stripe when available --- .../views/payments/credit_card.blade.php | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/resources/views/payments/credit_card.blade.php b/resources/views/payments/credit_card.blade.php index 149d8a3d4ff8..b72736315cdb 100644 --- a/resources/views/payments/credit_card.blade.php +++ b/resources/views/payments/credit_card.blade.php @@ -154,11 +154,12 @@ @if ($client) {{ Former::populate($client) }} + {{ Former::populateField('country_id', (string) $client->country_id) }} {{ Former::populateField('first_name', $contact->first_name) }} {{ Former::populateField('last_name', $contact->last_name) }} {{ Former::populateField('email', $contact->email) }} @if (!$client->country_id && $client->account->country_id) - {{ Former::populateField('country_id', $client->account->country_id) }} + {{ Former::populateField('country_id', (string) $client->account->country_id) }} {{ Former::populateField('shipping_country_id', $client->account->country_id) }} @endif @endif @@ -170,7 +171,7 @@ {{ Former::populateField('city', 'New York') }} {{ Former::populateField('state', 'NY') }} {{ Former::populateField('postal_code', '10118') }} - {{ Former::populateField('country_id', 840) }} + {{ Former::populateField('country_id', (string) 840) }}