diff --git a/app/PaymentDrivers/Stripe/SEPA.php b/app/PaymentDrivers/Stripe/SEPA.php index 7f36e424749e..0261b7b395ff 100644 --- a/app/PaymentDrivers/Stripe/SEPA.php +++ b/app/PaymentDrivers/Stripe/SEPA.php @@ -29,6 +29,8 @@ class SEPA public function __construct(StripePaymentDriver $stripe) { $this->stripe = $stripe; + + $this->stripe->init(); } public function authorizeView($data) @@ -73,7 +75,7 @@ class SEPA if (property_exists($gateway_response, 'status') && $gateway_response->status == 'processing') { - $this->stripe->init(); + $this->storePaymentMethod($gateway_response); return $this->processSuccessfulPayment($gateway_response->id); @@ -85,7 +87,7 @@ class SEPA public function processSuccessfulPayment(string $payment_intent) { - $this->stripe->init(); + $data = [ 'payment_method' => $payment_intent,