diff --git a/app/Http/Livewire/BillingPortalPurchase.php b/app/Http/Livewire/BillingPortalPurchase.php index 619a9a8366c1..ebb152435a39 100644 --- a/app/Http/Livewire/BillingPortalPurchase.php +++ b/app/Http/Livewire/BillingPortalPurchase.php @@ -123,8 +123,6 @@ class BillingPortalPurchase extends Component public function handleBeforePaymentEvents() { - - //stubs $data = [ 'client_id' => $this->contact->client->id, 'date' => now()->format('Y-m-d'), @@ -153,13 +151,6 @@ class BillingPortalPurchase extends Component $this->emit('beforePaymentEventsCompleted'); } - - //this isn't managed here - this is taken care of in the BS - public function applyCouponCode() - { - dd('Applying coupon code: ' . $this->coupon); - } - public function render() { if ($this->contact instanceof ClientContact) { diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 427445d983be..b4aab4bc41c5 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -4160,7 +4160,7 @@ $LANG = array( 'security_settings' => 'Security Settings', 'resend_email' => 'Resend Email', 'confirm_your_email_address' => 'Please confirm your email address', - 'freshbooks' => 'FreshBooks', + 'freshbooks' => 'FreshBooks', 'invoice2go' => 'Invoice2go', 'invoicely' => 'Invoicely', 'waveaccounting' => 'Wave Accounting', @@ -4170,6 +4170,7 @@ $LANG = array( 'migration_auth_label' => 'Let\'s continue by authenticating.', 'api_secret' => 'API secret', 'migration_api_secret_notice' => 'You can find API_SECRET in the .env file or Invoice Ninja v5. If property is missing, leave field blank.', + 'billing_coupon_notice' => 'Your discount will be applied on the checkout.', ); return $LANG; diff --git a/resources/views/portal/ninja2020/components/livewire/billing-portal-purchase.blade.php b/resources/views/portal/ninja2020/components/livewire/billing-portal-purchase.blade.php index 8a7afa8ce4e5..3b9324f31a27 100644 --- a/resources/views/portal/ninja2020/components/livewire/billing-portal-purchase.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/billing-portal-purchase.blade.php @@ -110,17 +110,12 @@ -
- @csrf - -
- - - -
-
+
+ +