Minor changes for setup intents

This commit is contained in:
David Bomba 2022-10-14 20:38:20 +11:00
parent 9838131a37
commit f622b3786a
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ class Charge
'payment_method' => $cgt->token, 'payment_method' => $cgt->token,
'customer' => $cgt->gateway_customer_reference, 'customer' => $cgt->gateway_customer_reference,
'confirm' => true, 'confirm' => true,
// 'off_session' => true,
'description' => $description, 'description' => $description,
'metadata' => [ 'metadata' => [
'payment_hash' => $payment_hash->hash, 'payment_hash' => $payment_hash->hash,

View File

@ -398,7 +398,7 @@ class StripePaymentDriver extends BaseDriver
{ {
$this->init(); $this->init();
$params = []; $params = ['usage' => 'off_session'];
$meta = $this->stripe_connect_auth; $meta = $this->stripe_connect_auth;
return SetupIntent::create($params, $meta); return SetupIntent::create($params, $meta);