From 07a82870e1748525fde87e4f001ed47844afbd7b Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Tue, 10 May 2016 10:27:21 -0400 Subject: [PATCH] Merge in change to include email when creating Stripe customer --- .../views/payments/add_paymentmethod.blade.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/views/payments/add_paymentmethod.blade.php b/resources/views/payments/add_paymentmethod.blade.php index 5e49b08d6f8c..2d90ff004f7f 100644 --- a/resources/views/payments/add_paymentmethod.blade.php +++ b/resources/views/payments/add_paymentmethod.blade.php @@ -83,6 +83,7 @@ routing_number: $('#routing_number').val().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''), account_number: $('#account_number').val().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '') @else + email: $('#email').val(), name: $('#first_name').val() + ' ' + $('#last_name').val(), address_line1: $('#address1').val(), address_line2: $('#address2').val(), @@ -280,6 +281,7 @@ {{ Former::populate($client) }} {{ 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', $client->account->country->iso_3166_2) }} @@ -351,16 +353,14 @@ ->label('') !!} - @if (isset($paymentTitle)) -
-
- {!! Former::text('email') - ->placeholder(trans('texts.email')) - ->autocomplete('email') - ->label('') !!} -
+
+
+ {!! Former::text('email') + ->placeholder(trans('texts.email')) + ->autocomplete('email') + ->label('') !!}
- @endif +