From 71d5ba0c785197beb079d7afa4151ee0b2c6c675 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Wed, 6 Oct 2021 08:53:36 +0200 Subject: [PATCH] fixed wrong payment type --- app/PaymentDrivers/Stripe/SEPA.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/PaymentDrivers/Stripe/SEPA.php b/app/PaymentDrivers/Stripe/SEPA.php index 435037722389..0833e65a20af 100644 --- a/app/PaymentDrivers/Stripe/SEPA.php +++ b/app/PaymentDrivers/Stripe/SEPA.php @@ -48,7 +48,7 @@ class SEPA $intent = \Stripe\PaymentIntent::create([ 'amount' => $data['stripe_amount'], 'currency' => 'eur', - 'payment_method_types' => ['sepa'], + 'payment_method_types' => ['sepa_debit'], 'customer' => $this->stripe->findOrCreateCustomer(), 'description' => $this->stripe->decodeUnicodeString(ctrans('texts.invoices') . ': ' . collect($data['invoices'])->pluck('invoice_number')), @@ -89,10 +89,10 @@ class SEPA $data = [ 'payment_method' => $payment_intent, - 'payment_type' => PaymentType::SOFORT, + 'payment_type' => PaymentType::SEPA, 'amount' => $this->stripe->convertFromStripeAmount($this->stripe->payment_hash->data->stripe_amount, $this->stripe->client->currency()->precision, $this->stripe->client->currency()), 'transaction_reference' => $payment_intent, - 'gateway_type_id' => GatewayType::SOFORT, + 'gateway_type_id' => GatewayType::SEPA, ]; $this->stripe->createPayment($data, Payment::STATUS_PENDING);