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

Commit

Permalink
Replaced setStripeCheckoutOptions with resolveStripeCheckoutOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed May 11, 2021
1 parent 928c5bf commit 1c3e8ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class CashierRegisterServiceProvider extends BaseServiceProvider
});

// Intercept the Stripe Checkout options.
BillingPortal::setStripeCheckoutOptions(function (Request $request, $billable, $plan, $subscription) {
BillingPortal::resolveStripeCheckoutOptions(function (Request $request, $billable, $plan, $subscription) {
return [
'payment_method_types' => ['card'],
];
Expand Down
2 changes: 1 addition & 1 deletion src/BillingPortal.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function getBillable(Request $request)
* @param \Closure $callback
* @return void
*/
public static function setStripeCheckoutOptions(Closure $callback)
public static function resolveStripeCheckoutOptions(Closure $callback)
{
static::$stripeCheckoutOptions = $callback;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function setUp(): void
return $request->user();
});

BillingPortal::setStripeCheckoutOptions(function (Request $request, $billable, $plan, $subscription) {
BillingPortal::resolveStripeCheckoutOptions(function (Request $request, $billable, $plan, $subscription) {
return [
'payment_method_types' => ['card'],
];
Expand Down

0 comments on commit 1c3e8ab

Please sign in to comment.