From 35c79dbc50bda52ea3171a4e5dbc07732f4d9ba8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 4 Sep 2024 13:50:37 +1000 Subject: [PATCH] Fixes for new payment flow --- app/PaymentDrivers/Stripe/FPX.php | 2 +- app/PaymentDrivers/Stripe/PRZELEWY24.php | 6 +++--- app/PaymentDrivers/Stripe/SEPA.php | 6 +++--- app/PaymentDrivers/Stripe/iDeal.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/PaymentDrivers/Stripe/FPX.php b/app/PaymentDrivers/Stripe/FPX.php index 2a2222270a74..a7cfe5d52158 100644 --- a/app/PaymentDrivers/Stripe/FPX.php +++ b/app/PaymentDrivers/Stripe/FPX.php @@ -156,4 +156,4 @@ class FPX implements LivewireMethodInterface { return 'gateways.stripe.fpx.pay_livewire'; } -} \ No newline at end of file +} diff --git a/app/PaymentDrivers/Stripe/PRZELEWY24.php b/app/PaymentDrivers/Stripe/PRZELEWY24.php index 59efc245e6ed..e20103d2fcb6 100644 --- a/app/PaymentDrivers/Stripe/PRZELEWY24.php +++ b/app/PaymentDrivers/Stripe/PRZELEWY24.php @@ -119,7 +119,7 @@ class PRZELEWY24 implements LivewireMethodInterface throw new PaymentFailed('Failed to process the payment.', 500); } - + public function paymentData(array $data): array { $this->stripe->init(); @@ -151,8 +151,8 @@ class PRZELEWY24 implements LivewireMethodInterface return $data; } - public function livewirePaymentView(array $data): string + public function livewirePaymentView(array $data): string { return 'gateways.stripe.przelewy24.pay_livewire'; } -} \ No newline at end of file +} diff --git a/app/PaymentDrivers/Stripe/SEPA.php b/app/PaymentDrivers/Stripe/SEPA.php index 8d724309bca4..bf937f0a3db1 100644 --- a/app/PaymentDrivers/Stripe/SEPA.php +++ b/app/PaymentDrivers/Stripe/SEPA.php @@ -142,7 +142,7 @@ class SEPA implements LivewireMethodInterface 'company_id' => $this->stripe->client->company_id, ])->first(); - if($token) { + if ($token) { return $token; } @@ -185,8 +185,8 @@ class SEPA implements LivewireMethodInterface return $data; } - public function livewirePaymentView(array $data): string + public function livewirePaymentView(array $data): string { return 'gateways.stripe.sepa.pay_livewire'; } -} \ No newline at end of file +} diff --git a/app/PaymentDrivers/Stripe/iDeal.php b/app/PaymentDrivers/Stripe/iDeal.php index 9116956b3727..e08e6a7cb4cd 100644 --- a/app/PaymentDrivers/Stripe/iDeal.php +++ b/app/PaymentDrivers/Stripe/iDeal.php @@ -151,8 +151,8 @@ class iDeal implements LivewireMethodInterface return $data; } - public function livewirePaymentView(array $data): string + public function livewirePaymentView(array $data): string { return 'gateways.stripe.ideal.pay_livewire'; } -} \ No newline at end of file +}