mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5676 from turbo124/v5-develop
Fixes for stripe authorize card
This commit is contained in:
commit
38d4307620
@ -297,6 +297,7 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
if ($client_gateway_token && $client_gateway_token->gateway_customer_reference) {
|
if ($client_gateway_token && $client_gateway_token->gateway_customer_reference) {
|
||||||
$customer = Customer::retrieve($client_gateway_token->gateway_customer_reference);
|
$customer = Customer::retrieve($client_gateway_token->gateway_customer_reference);
|
||||||
} else {
|
} else {
|
||||||
|
$meta = [];
|
||||||
$data['name'] = $this->client->present()->name();
|
$data['name'] = $this->client->present()->name();
|
||||||
$data['phone'] = $this->client->present()->phone();
|
$data['phone'] = $this->client->present()->phone();
|
||||||
|
|
||||||
@ -304,7 +305,10 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
$data['email'] = $this->client->present()->email();
|
$data['email'] = $this->client->present()->email();
|
||||||
}
|
}
|
||||||
|
|
||||||
$customer = Customer::create($data);
|
if($this->stripe->stripe_connect)
|
||||||
|
$meta['account_id'] = $this->company_gateway->getConfigField('account_id');
|
||||||
|
|
||||||
|
$customer = Customer::create($data, $meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$customer) {
|
if (!$customer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user