1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for passing payment methods types through to Stripe

This commit is contained in:
David Bomba 2023-11-16 14:47:23 +11:00
parent adfff8e090
commit fb27bd99e5
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class CreditCard
'gateway_type_id' => GatewayType::CREDIT_CARD,
],
'setup_future_usage' => 'off_session',
'payment_method_types' => ['card'],
];
$data['intent'] = $this->stripe->createPaymentIntent($payment_intent_data);

View File

@ -125,6 +125,7 @@ class StripePaymentDriver extends BaseDriver
Stripe::setApiKey($this->company_gateway->getConfigField('apiKey'));
Stripe::setApiVersion('2022-11-15');
// Stripe::setAPiVersion('2023-08-16');
}
return $this;