Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Releases: renoki-co/jetstream-cashier-billing-portal

4.2.0

31 Jul 13:13
8eb7553
Compare
Choose a tag to compare

Before upgrading the package from 4.x, make sure to check the upgrade guide for Stripe Cashier 13.x: https://github.com/laravel/cashier-stripe/blob/13.x/UPGRADE.md

4.1.0

17 May 10:42
Compare
Choose a tag to compare

Please see this full diff: 4.0.0...4.1.0

  • Stripe action files received two new methods that need to be implemented: swapToPlan and subscribeToPlan (#23, 0425c6e)

4.0.0

16 May 19:22
8a6e994
Compare
Choose a tag to compare

Bumping renoki-co/cashier-register to ^5.0. Please see the latest release notes. Breaking changes will also be included in this release note.

Before upgrading

This update requires a new field in the subscription_usages table called used_total:

Schema::create('subscription_usages', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('subscription_id');
            $table->string('feature_id');
            $table->unsignedSmallInteger('used');
+           $table->unsignedSmallInteger('used_total');
            $table->timestamps();
});

Stripe ^12.13

This version recommends Cashier for Stripe ^12.13 or newer (8db080b).

Reinstall

You should re-run the install command to publish the actions needed for the subscription logic as well as the new design. The command now also copies app/Providers/BillingPortalServiceProvider.php and app/Providers/CashierRegisterServiceProvider.php which will be auto-imported during the installation.

$ php artisan billing-portal:install inertia stripe

New design

The billing dashboard was revamped with some new design that's easier to use and implement. You may simply just redirect your users for it using billing-portal.dashboard route for the new experience.

Running the install command will do the job. 🐱

Proration between swaps (cea7925)

Proration between swaps is enabled by default, but you can overwrite it in app/Providers/BillingPortalServiceProvider.php:

BillingPortal::dontProrateOnSwap();

Renames (c9bab51, deeb4f6, 7fd3f28, 5b712ec, a536fd9, 1c3e8ab, 928c5bf, 002ea80, 1794790)

For consistency, the following methods were renamed:

  • Replaced getBillableFromRequest with getBillable
  • Replaced setBillableOnRequest with resolveBillable
  • Replaced setStripeCheckoutOptions with resolveStripeCheckoutOptions
  • Replaced getOptionsForStripeCheckout with getStripeCheckoutOptions
  • Replaced onCheckout with resolveStripeCheckout
  • Replaced onSyncingQuotas with resolveQuotasSync

3.2.0

17 Apr 18:50
de330af
Compare
Choose a tag to compare
  • Replaced laravel/framework requirement with the subcomponents from illuminate/* (de330af)

3.1.0

06 Apr 08:59
650b653
Compare
Choose a tag to compare
  • Fixed Inertia redirect (#10)

2.1.0

06 Apr 08:59
1ae2328
Compare
Choose a tag to compare
  • Fixed Inertia redirect (#11)

3.0.0

16 Mar 20:37
be60605
Compare
Choose a tag to compare
  • Bumped renoki-co/cashier-register to 4.0 (#7).

See release notes before upgrading to this version: https://github.com/renoki-co/cashier-register/releases/tag/4.0.0

2.0.0

28 Feb 16:40
Compare
Choose a tag to compare

Stripe Checkout is the default way to go in case there is no default payment method set for the user.

This version needs Cashier Stripe at least 12.9. Please see PR #6.

  • Formatting some vue files (74954dd)
  • Added button for Stripe Billing Portal on the subscription page (ec266df)

1.2.2

27 Feb 21:24
3c1236b
Compare
Choose a tag to compare
  • Fixed command for newer jetstream:install commands. (#5)

1.2.1

20 Jan 08:29
9a4f7f6
Compare
Choose a tag to compare

Security patches