mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Send contact's email when creating Stripe token
This commit is contained in:
parent
1000ff4088
commit
2e2470e11c
@ -63,7 +63,6 @@ class PaymentService extends BaseService
|
|||||||
|
|
||||||
if ($input) {
|
if ($input) {
|
||||||
$data = self::convertInputForOmnipay($input);
|
$data = self::convertInputForOmnipay($input);
|
||||||
$data['email'] = $invitation->contact->email;
|
|
||||||
Session::put($key, $data);
|
Session::put($key, $data);
|
||||||
} elseif (Session::get($key)) {
|
} elseif (Session::get($key)) {
|
||||||
$data = Session::get($key);
|
$data = Session::get($key);
|
||||||
@ -95,6 +94,7 @@ class PaymentService extends BaseService
|
|||||||
$data = [
|
$data = [
|
||||||
'firstName' => $input['first_name'],
|
'firstName' => $input['first_name'],
|
||||||
'lastName' => $input['last_name'],
|
'lastName' => $input['last_name'],
|
||||||
|
'email' => $input['email'],
|
||||||
'number' => isset($input['card_number']) ? $input['card_number'] : null,
|
'number' => isset($input['card_number']) ? $input['card_number'] : null,
|
||||||
'expiryMonth' => isset($input['expiration_month']) ? $input['expiration_month'] : null,
|
'expiryMonth' => isset($input['expiration_month']) ? $input['expiration_month'] : null,
|
||||||
'expiryYear' => isset($input['expiration_year']) ? $input['expiration_year'] : null,
|
'expiryYear' => isset($input['expiration_year']) ? $input['expiration_year'] : null,
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
name: $('#first_name').val() + ' ' + $('#last_name').val(),
|
name: $('#first_name').val() + ' ' + $('#last_name').val(),
|
||||||
|
email: $('#email').val(),
|
||||||
address_line1: $('#address1').val(),
|
address_line1: $('#address1').val(),
|
||||||
address_line2: $('#address2').val(),
|
address_line2: $('#address2').val(),
|
||||||
address_city: $('#city').val(),
|
address_city: $('#city').val(),
|
||||||
@ -117,6 +118,7 @@
|
|||||||
{{ Former::populate($client) }}
|
{{ Former::populate($client) }}
|
||||||
{{ Former::populateField('first_name', $contact->first_name) }}
|
{{ Former::populateField('first_name', $contact->first_name) }}
|
||||||
{{ Former::populateField('last_name', $contact->last_name) }}
|
{{ Former::populateField('last_name', $contact->last_name) }}
|
||||||
|
{{ Former::populateField('email', $contact->email) }}
|
||||||
@if (!$client->country_id && $client->account->country_id)
|
@if (!$client->country_id && $client->account->country_id)
|
||||||
{{ Former::populateField('country_id', $client->account->country_id) }}
|
{{ Former::populateField('country_id', $client->account->country_id) }}
|
||||||
@endif
|
@endif
|
||||||
@ -178,8 +180,7 @@
|
|||||||
->label('') !!}
|
->label('') !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if (isset($paymentTitle))
|
<div class="row" style="display:{{ isset($paymentTitle) ? 'block' : 'none' }}">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{!! Former::text('email')
|
{!! Former::text('email')
|
||||||
->placeholder(trans('texts.email'))
|
->placeholder(trans('texts.email'))
|
||||||
@ -187,7 +188,6 @@
|
|||||||
->label('') !!}
|
->label('') !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
|
||||||
|
|
||||||
<p> <br/> </p>
|
<p> <br/> </p>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user