From 3a04c9097d3728f2c5fffebfa9be140721b6e7df Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 27 Nov 2021 11:46:28 +1100 Subject: [PATCH] Fixes for square token billing --- app/PaymentDrivers/SquarePaymentDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/PaymentDrivers/SquarePaymentDriver.php b/app/PaymentDrivers/SquarePaymentDriver.php index 5970cfd491bb..9a52c6e0980a 100644 --- a/app/PaymentDrivers/SquarePaymentDriver.php +++ b/app/PaymentDrivers/SquarePaymentDriver.php @@ -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);