Skip to content

Commit

Permalink
fixes cashier-paddle.md (#9614)
Browse files Browse the repository at this point in the history
  • Loading branch information
saMahmoudzadeh authored Apr 30, 2024
1 parent bf44ac6 commit 32acc19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cashier-paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Paddle relies on its own JavaScript library to initiate the Paddle checkout widg
<a name="currency-configuration"></a>
### Currency Configuration

You can specify a locale to be used when formatting money values for display on invoices. Internally, Cashier utilizes [PHP's `NumberFormatter` class](https://www.php.net/manual/en/class.numberformatter.php) class to set the currency locale:
You can specify a locale to be used when formatting money values for display on invoices. Internally, Cashier utilizes [PHP's `NumberFormatter` class](https://www.php.net/manual/en/class.numberformatter.php) to set the currency locale:

```ini
CASHIER_CURRENCY_LOCALE=nl_BE
Expand Down Expand Up @@ -703,7 +703,7 @@ To create a subscription, first retrieve an instance of your billable model from

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

You may also provide an array of custom meta data regarding the subscription using the `customData` method:
You may also provide an array of custom metadata regarding the subscription using the `customData` method:

$checkout = $request->user()->subscribe($premium = 12345, 'default')
->customData(['key' => 'value'])
Expand All @@ -722,7 +722,7 @@ After the user has finished their checkout, a `subscription_created` webhook wil
<a name="checking-subscription-status"></a>
### Checking Subscription Status

Once a user is subscribed to your application, you may check their subscription status using a variety of convenient methods. First, the `subscribed` method returns `true` if the user has an valid subscription, even if the subscription is currently within its trial period:
Once a user is subscribed to your application, you may check their subscription status using a variety of convenient methods. First, the `subscribed` method returns `true` if the user has a valid subscription, even if the subscription is currently within its trial period:

if ($user->subscribed()) {
// ...
Expand Down

0 comments on commit 32acc19

Please sign in to comment.