Fixes for square token billing
This commit is contained in:
parent
8916c57777
commit
3a04c9097d
1 changed files with 1 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ class SquarePaymentDriver extends BaseDriver
|
|||
$amount_money->setCurrency($this->client->currency()->code);
|
||||
|
||||
$body = new \Square\Models\CreatePaymentRequest($cgt->token, \Illuminate\Support\Str::random(32), $amount_money);
|
||||
$body->setCustomerId($cgt->gateway_customer_reference);
|
||||
|
||||
/** @var ApiResponse */
|
||||
$response = $this->square->getPaymentsApi()->createPayment($body);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue