Fixes for braintree
This commit is contained in:
parent
0b37f42db8
commit
8ba5e12778
1 changed files with 6 additions and 6 deletions
|
|
@ -110,17 +110,17 @@ class BraintreePaymentDriver extends BaseDriver
|
|||
}
|
||||
|
||||
$result = $this->gateway->customer()->create([
|
||||
'firstName' => $this->client->present()->name,
|
||||
'email' => $this->client->present()->email,
|
||||
'phone' => $this->client->present()->phone,
|
||||
'firstName' => $this->client->present()->name(),
|
||||
'email' => $this->client->present()->email(),
|
||||
'phone' => $this->client->present()->phone(),
|
||||
]);
|
||||
|
||||
if ($result->success) {
|
||||
$address = $this->gateway->address()->create([
|
||||
'customerId' => $result->customer->id,
|
||||
'firstName' => $this->client->present()->name,
|
||||
'streetAddress' => $this->client->address1,
|
||||
'postalCode' => $this->client->postal_code,
|
||||
'firstName' => $this->client->present()->name(),
|
||||
'streetAddress' => $this->client->address1 ?: '',
|
||||
'postalCode' => $this->client->postal_code ?: '',
|
||||
'countryCodeAlpha2' => $this->client->country ? $this->client->country->iso_3166_2 : '',
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue