tag:github.com,2008:https://github.com/renoki-co/jetstream-cashier-billing-portal/releasesRelease notes from jetstream-cashier-billing-portal2021-07-31T12:49:42Ztag:github.com,2008:Repository/320252661/4.2.02021-07-31T13:13:20Z4.2.0<p>Before upgrading the package from 4.x, make sure to check the upgrade guide for Stripe Cashier 13.x: <a href="https://github.com/laravel/cashier-stripe/blob/13.x/UPGRADE.md">https://github.com/laravel/cashier-stripe/blob/13.x/UPGRADE.md</a></p>
<ul>
<li>Added support for Cashier 13.x</li>
<li>Upgraded Cashier Register to 6.0 (<a href="https://github.com/renoki-co/cashier-register/releases/tag/6.0.0">https://github.com/renoki-co/cashier-register/releases/tag/6.0.0</a>)</li>
<li>
<ul>
<li>Support for Laravel 7.x dropped</li>
</ul>
</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/4.1.02021-05-17T10:42:35Z4.1.0<p>Please see this full diff: <a class="commit-link" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/compare/4.0.0...4.1.0"><tt>4.0.0...4.1.0</tt></a></p>
<ul>
<li>Stripe action files received two new methods that need to be implemented: <code>swapToPlan</code> and <code>subscribeToPlan</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="893191529" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/23" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/23/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/23">#23</a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/0425c6ee44450e4edf463e5ca518be74e6cc615b/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/0425c6ee44450e4edf463e5ca518be74e6cc615b"><tt>0425c6e</tt></a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/4.0.02021-05-16T19:22:11Z4.0.0<p>Bumping <code>renoki-co/cashier-register</code> to <code>^5.0</code>. Please see the <a href="https://github.com/renoki-co/cashier-register/releases/tag/5.0.0">latest release notes</a>. Breaking changes will also be included in this release note.</p>
<h2>Before upgrading</h2>
<p>This update requires a new field in the <code>subscription_usages</code> table called <code>used_total</code>:</p>
<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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();
});"><pre>Schema::create('subscription_usages', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('subscription_id');
$table->string('feature_id');
$table->unsignedSmallInteger('used');
<span class="pl-mi1"><span class="pl-mi1">+</span> $table->unsignedSmallInteger('used_total');</span>
$table->timestamps();
});</pre></div>
<h3>Stripe ^12.13</h3>
<p>This version recommends <a href="https://github.com/laravel/cashier-stripe/releases">Cashier for Stripe <code>^12.13</code> or newer</a> (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/8db080ba4f3a0ac70b8e3dc28171e4ead38836ee/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/8db080ba4f3a0ac70b8e3dc28171e4ead38836ee"><tt>8db080b</tt></a>).</p>
<h3>Reinstall</h3>
<p>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 <code>app/Providers/BillingPortalServiceProvider.php</code> and <code>app/Providers/CashierRegisterServiceProvider.php</code> which will be auto-imported during the installation.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ php artisan billing-portal:install inertia stripe"><pre>$ php artisan billing-portal:install inertia stripe</pre></div>
<h3>New design</h3>
<p>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 <code>billing-portal.dashboard</code> route for the new experience.</p>
<p>Running the install command will do the job. 🐱</p>
<h3>Proration between swaps (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/cea79258a186144133e87e251d99053ede075ebb/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/cea79258a186144133e87e251d99053ede075ebb"><tt>cea7925</tt></a>)</h3>
<p>Proration between swaps is enabled by default, but you can overwrite it in <code>app/Providers/BillingPortalServiceProvider.php</code>:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BillingPortal::dontProrateOnSwap();"><pre>BillingPortal::<span class="pl-en">dontProrateOnSwap</span>();</pre></div>
<h3>Renames (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/c9bab51a1b3516279057a8fc5f7a996a898aa1d1/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/c9bab51a1b3516279057a8fc5f7a996a898aa1d1"><tt>c9bab51</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/deeb4f6d67d471e5875702e92fdce4bb682fd31a/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/deeb4f6d67d471e5875702e92fdce4bb682fd31a"><tt>deeb4f6</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/7fd3f28e9586b1ce42be81332f417f2a1b67c318/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/7fd3f28e9586b1ce42be81332f417f2a1b67c318"><tt>7fd3f28</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/5b712ec1a9b5f4ba2c1025d1b3edee32834213e3/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/5b712ec1a9b5f4ba2c1025d1b3edee32834213e3"><tt>5b712ec</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/a536fd95eeaff919c929c9bc2b8944129b144fa2/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/a536fd95eeaff919c929c9bc2b8944129b144fa2"><tt>a536fd9</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/1c3e8ab801172a975ff554801d0f1c7b1ca4ec97/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/1c3e8ab801172a975ff554801d0f1c7b1ca4ec97"><tt>1c3e8ab</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/928c5bfb412e7490c789fe3f74512ddfe7f0a724/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/928c5bfb412e7490c789fe3f74512ddfe7f0a724"><tt>928c5bf</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/002ea802762d736b543b391b7e1ca8594cc55d28/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/002ea802762d736b543b391b7e1ca8594cc55d28"><tt>002ea80</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/17947904beada47816fd9b3e433af18df228cd5a/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/17947904beada47816fd9b3e433af18df228cd5a"><tt>1794790</tt></a>)</h3>
<p>For consistency, the following methods were renamed:</p>
<ul>
<li>Replaced <code>getBillableFromRequest</code> with <code>getBillable</code></li>
<li>Replaced <code>setBillableOnRequest</code> with <code>resolveBillable</code></li>
<li>Replaced <code>setStripeCheckoutOptions</code> with <code>resolveStripeCheckoutOptions</code></li>
<li>Replaced <code>getOptionsForStripeCheckout</code> with <code>getStripeCheckoutOptions</code></li>
<li>Replaced <code>onCheckout</code> with <code>resolveStripeCheckout</code></li>
<li>Replaced <code>onSyncingQuotas</code> with <code>resolveQuotasSync</code></li>
</ul>rennokkitag:github.com,2008:Repository/320252661/3.2.02021-04-17T18:50:01Z3.2.0<ul>
<li>Replaced <code>laravel/framework</code> requirement with the subcomponents from <code>illuminate/*</code> (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/de330af7548faf4c2acb116e7a33dd930b3d5131/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/de330af7548faf4c2acb116e7a33dd930b3d5131"><tt>de330af</tt></a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/3.1.02021-04-06T08:59:27Z3.1.0<ul>
<li>Fixed Inertia redirect (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851185389" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/10" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/10/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/10">#10</a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/2.1.02021-04-06T08:59:46Z2.1.0<ul>
<li>Fixed Inertia redirect (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851204276" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/11" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/11/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/11">#11</a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/3.0.02021-03-16T20:37:07Z3.0.0<ul>
<li>Bumped renoki-co/cashier-register to <code>4.0</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="833170351" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/7" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/7/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/7">#7</a>).</li>
</ul>
<p>See release notes before upgrading to this version: <a href="https://github.com/renoki-co/cashier-register/releases/tag/4.0.0">https://github.com/renoki-co/cashier-register/releases/tag/4.0.0</a></p>rennokkitag:github.com,2008:Repository/320252661/2.0.02021-02-28T16:40:40Z2.0.0<p>Stripe Checkout is the default way to go in case there is no default payment method set for the user.</p>
<p>This version needs Cashier Stripe at least <code>12.9</code>. Please see PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="818025049" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/6" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/6/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/6">#6</a>.</p>
<ul>
<li>Formatting some vue files (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/74954dd74ef57b5c7d3a5b1afa0fe17ff75f1e0c/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/74954dd74ef57b5c7d3a5b1afa0fe17ff75f1e0c"><tt>74954dd</tt></a>)</li>
<li>Added button for Stripe Billing Portal on the subscription page (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/ec266df457c6ec33607c8339d277e67530cf4928/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/commit/ec266df457c6ec33607c8339d277e67530cf4928"><tt>ec266df</tt></a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/1.2.22021-02-27T21:24:41Z1.2.2<ul>
<li>Fixed command for newer <code>jetstream:install</code> commands. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="809999703" data-permission-text="Title is private" data-url="https://github.com/renoki-co/jetstream-cashier-billing-portal/issues/5" data-hovercard-type="pull_request" data-hovercard-url="/renoki-co/jetstream-cashier-billing-portal/pull/5/hovercard" href="https://github.com/renoki-co/jetstream-cashier-billing-portal/pull/5">#5</a>)</li>
</ul>rennokkitag:github.com,2008:Repository/320252661/1.2.12021-01-20T08:29:48Z1.2.1<p>Security patches</p>rennokki