From d05a58cebe86ec54350c0b55b3166a31170a054b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 27 Jan 2024 18:59:56 +1100 Subject: [PATCH] Livewire fixes for subscription purchasds --- app/Livewire/BillingPortalPurchase.php | 1 + app/Services/ClientPortal/InstantPayment.php | 1 + .../views/billing-portal/purchase.blade.php | 17 +++++++++-------- .../views/billing-portal/purchasev2.blade.php | 8 +------- .../livewire/billing-portal-purchase.blade.php | 2 +- .../ninja2020/subscriptions/switch.blade.php | 7 ++++++- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/Livewire/BillingPortalPurchase.php b/app/Livewire/BillingPortalPurchase.php index efb665d511e0..0889c2fc88a1 100644 --- a/app/Livewire/BillingPortalPurchase.php +++ b/app/Livewire/BillingPortalPurchase.php @@ -353,6 +353,7 @@ class BillingPortalPurchase extends Component $this->payment_method_id = $gateway_type_id; $this->handleBeforePaymentEvents(); + } /** diff --git a/app/Services/ClientPortal/InstantPayment.php b/app/Services/ClientPortal/InstantPayment.php index 3f329c0d8032..7ce624d5f270 100644 --- a/app/Services/ClientPortal/InstantPayment.php +++ b/app/Services/ClientPortal/InstantPayment.php @@ -44,6 +44,7 @@ class InstantPayment public function run() { + nlog($this->request->all()); $is_credit_payment = false; $tokens = []; diff --git a/resources/views/billing-portal/purchase.blade.php b/resources/views/billing-portal/purchase.blade.php index 312a33682200..64724977c3e2 100644 --- a/resources/views/billing-portal/purchase.blade.php +++ b/resources/views/billing-portal/purchase.blade.php @@ -6,18 +6,19 @@ @stop @push('footer') + + @endpush diff --git a/resources/views/billing-portal/purchasev2.blade.php b/resources/views/billing-portal/purchasev2.blade.php index 33883489393f..ff94394bfe2c 100644 --- a/resources/views/billing-portal/purchasev2.blade.php +++ b/resources/views/billing-portal/purchasev2.blade.php @@ -7,14 +7,8 @@ @push('footer') + @endpush