Skip to content

Commit

Permalink
[8.x] Clarify subscription name usage (#7369)
Browse files Browse the repository at this point in the history
* Update billing.md

* Update cashier-paddle.md

* Update billing.md

* Update billing.md

* Update cashier-paddle.md

* Update billing.md

* Update billing.md

* Update cashier-paddle.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
driesvints and taylorotwell committed Oct 18, 2021
1 parent e43872a commit ee01991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ To create a subscription, first retrieve an instance of your billable model, whi
// ...
});

The first argument passed to the `newSubscription` method should be the name of the subscription. If your application only offers a single subscription, you might call this `default` or `primary`. The second argument is the specific price the user is subscribing to. This value should correspond to the price's identifier in Stripe.
The first argument passed to the `newSubscription` method should be the internal name of the subscription. If your application only offers a single subscription, you might call this `default` or `primary`. This subscription name is only for internal application usage and is not meant to be shown to users. In addition, it should not contain spaces and it should never be changed after creating the subscription. The second argument is the specific price the user is subscribing to. This value should correspond to the price's identifier in Stripe.

The `create` method, which accepts [a Stripe payment method identifier](#storing-payment-methods) or Stripe `PaymentMethod` object, will begin the subscription as well as update your database with the billable model's Stripe customer ID and other relevant billing information.

Expand Down
2 changes: 1 addition & 1 deletion cashier-paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ To create a subscription, first retrieve an instance of your billable model, whi
return view('billing', ['payLink' => $payLink]);
});

The first argument passed to the `newSubscription` method should be the name of the subscription. If your application only offers a single subscription, you might call this `default` or `primary`. The second argument is the specific plan the user is subscribing to. This value should correspond to the plan's identifier in Paddle. The `returnTo` method accepts a URL that your user will be redirected to after they successfully complete the checkout.
The first argument passed to the `newSubscription` method should be the internal name of the subscription. If your application only offers a single subscription, you might call this `default` or `primary`. This subscription name is only for internal application usage and is not meant to be shown to users. In addition, it should not contain spaces and it should never be changed after creating the subscription. The second argument given to the `newSubscription` method is the specific plan the user is subscribing to. This value should correspond to the plan's identifier in Paddle. The `returnTo` method accepts a URL that your user will be redirected to after they successfully complete the checkout.

The `create` method will create a pay link which you can use to generate a payment button. The payment button can be generated using the `paddle-button` [Blade component](/docs/{{version}}/blade#components) that is included with Cashier Paddle:

Expand Down

0 comments on commit ee01991

Please sign in to comment.