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();
|
$customerRequest = $this->checkout->getCustomer();
|
||||||
|
|
||||||
nlog($customerRequest);
|
|
||||||
|
|
||||||
$request = $this->bootRequest($gateway_response->token);
|
$request = $this->bootRequest($gateway_response->token);
|
||||||
$request->capture = false;
|
$request->capture = false;
|
||||||
$request->reference = '$1 payment for authorization.';
|
$request->reference = '$1 payment for authorization.';
|
||||||
|
@ -34,6 +34,7 @@ use Checkout\CheckoutArgumentException;
|
|||||||
use Checkout\CheckoutAuthorizationException;
|
use Checkout\CheckoutAuthorizationException;
|
||||||
use Checkout\CheckoutDefaultSdk;
|
use Checkout\CheckoutDefaultSdk;
|
||||||
use Checkout\CheckoutFourSdk;
|
use Checkout\CheckoutFourSdk;
|
||||||
|
use Checkout\Common\Phone;
|
||||||
use Checkout\Customers\CustomerRequest;
|
use Checkout\Customers\CustomerRequest;
|
||||||
use Checkout\Customers\Four\CustomerRequest as FourCustomerRequest;
|
use Checkout\Customers\Four\CustomerRequest as FourCustomerRequest;
|
||||||
use Checkout\Environment;
|
use Checkout\Environment;
|
||||||
@ -300,9 +301,12 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
$request = new CustomerRequest();
|
$request = new CustomerRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
$request->email = $this->client->present()->email();
|
$phone = new Phone();
|
||||||
$request->name = $this->client->present()->name();
|
$phone->number = $this->client->present()->phone();
|
||||||
$request->phone = $this->client->present()->phone();
|
|
||||||
|
$request->email = $this->client->present()->email();
|
||||||
|
$request->name = $this->client->present()->name();
|
||||||
|
$request->phone = $phone;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = $this->gateway->getCustomersClient()->create($request);
|
$response = $this->gateway->getCustomersClient()->create($request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user