From f622b3786acf4d3828524220bc9173edcf24542c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 14 Oct 2022 20:38:20 +1100 Subject: [PATCH] Minor changes for setup intents --- app/PaymentDrivers/Stripe/Charge.php | 1 + app/PaymentDrivers/StripePaymentDriver.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/Charge.php b/app/PaymentDrivers/Stripe/Charge.php index f1dee3019796..3c927e544baa 100644 --- a/app/PaymentDrivers/Stripe/Charge.php +++ b/app/PaymentDrivers/Stripe/Charge.php @@ -78,6 +78,7 @@ class Charge 'payment_method' => $cgt->token, 'customer' => $cgt->gateway_customer_reference, 'confirm' => true, + // 'off_session' => true, 'description' => $description, 'metadata' => [ 'payment_hash' => $payment_hash->hash, diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index a46d17ace9c8..5917c9212de7 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -398,7 +398,7 @@ class StripePaymentDriver extends BaseDriver { $this->init(); - $params = []; + $params = ['usage' => 'off_session']; $meta = $this->stripe_connect_auth; return SetupIntent::create($params, $meta);