mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Implement checkout object for phone
This commit is contained in:
parent
bf07742caa
commit
0815a0ff69
@ -94,8 +94,6 @@ class CreditCard implements MethodInterface
|
||||
|
||||
$customerRequest = $this->checkout->getCustomer();
|
||||
|
||||
nlog($customerRequest);
|
||||
|
||||
$request = $this->bootRequest($gateway_response->token);
|
||||
$request->capture = false;
|
||||
$request->reference = '$1 payment for authorization.';
|
||||
|
@ -34,6 +34,7 @@ use Checkout\CheckoutArgumentException;
|
||||
use Checkout\CheckoutAuthorizationException;
|
||||
use Checkout\CheckoutDefaultSdk;
|
||||
use Checkout\CheckoutFourSdk;
|
||||
use Checkout\Common\Phone;
|
||||
use Checkout\Customers\CustomerRequest;
|
||||
use Checkout\Customers\Four\CustomerRequest as FourCustomerRequest;
|
||||
use Checkout\Environment;
|
||||
@ -300,9 +301,12 @@ class CheckoutComPaymentDriver extends BaseDriver
|
||||
$request = new CustomerRequest();
|
||||
}
|
||||
|
||||
$phone = new Phone();
|
||||
$phone->number = $this->client->present()->phone();
|
||||
|
||||
$request->email = $this->client->present()->email();
|
||||
$request->name = $this->client->present()->name();
|
||||
$request->phone = $this->client->present()->phone();
|
||||
$request->phone = $phone;
|
||||
|
||||
try {
|
||||
$response = $this->gateway->getCustomersClient()->create($request);
|
||||
|
Loading…
x
Reference in New Issue
Block a user