Skip to content

Commit fd27a7b

Browse files
committed
Revert "remove paddle (#44)"
This reverts commit 4bf465c.
1 parent 899ae94 commit fd27a7b

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

.vitepress/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ export default defineConfigWithTheme<ThemeConfig>({
8383
{ text: 'Installation', link: '/installation' },
8484
{ text: 'Customization', link: '/customization' },
8585
],
86+
}, {
87+
text: 'Spark Paddle',
88+
items: [
89+
{ text: 'Configuration', link: '/spark-paddle/configuration' },
90+
{ text: 'Plans', link: '/spark-paddle/plans' },
91+
{ text: 'Middleware', link: '/spark-paddle/middleware' },
92+
{ text: 'Events', link: '/spark-paddle/events' },
93+
{ text: 'Testing', link: '/spark-paddle/testing' },
94+
{ text: 'Cookbook', link: '/spark-paddle/cookbook' },
95+
{ text: 'Customization', link: '/spark-paddle/customization' },
96+
{ text: 'Upgrade', link: '/spark-paddle/upgrade' },
97+
],
8698
}, {
8799
text: 'Spark Stripe',
88100
items: [

src/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ To get started installing Spark, add the Spark repository to your application's
2020
],
2121
```
2222

23-
Next, you may add the `laravel/spark-stripe` package to the list of required packages in your `composer.json` file:
23+
Next, you may add the `laravel/spark-paddle` or `laravel/spark-stripe` package to the list of required packages in your `composer.json` file:
2424

2525
```json
2626
"require": {
2727
"php": "^8.1",
2828
"laravel/framework": "^10.0",
29-
"laravel/spark-stripe": "^4.0"
29+
"laravel/spark-paddle": "^4.0"
3030
},
3131
```
3232

@@ -77,7 +77,7 @@ php artisan migrate
7777
If you are using the Stripe edition of Spark and plan to bill a model other than the `App\Models\User` model, you should follow [these instructions](./spark-stripe/customization.md#migrations) before running the migration command.
7878
:::
7979

80-
Lastly, you will need to configure Stripe webhooks so that these services can communicate with your local application via webhooks. To get started, read our dedicated documentation on [Stripe webhooks](./spark-stripe/configuration.md#stripe-webhooks). Webhooks are required during both local development and in production environments.
80+
Lastly, you will need to configure Stripe or Paddle webhooks so that these services can communicate with your local application via webhooks. To get started, read our dedicated documentation on [Stripe webhooks](./spark-stripe/configuration.md#stripe-webhooks) or [Paddle webhooks](./spark-paddle/configuration.md#paddle-webhooks). Webhooks are required during both local development and in production environments.
8181

8282
That's it! Next, you may navigate to your application's `config/spark.php` configuration file and begin configuring your Spark installation.
8383

@@ -97,6 +97,6 @@ If your Spark license has expired and you don't want to renew the license your `
9797
"require": {
9898
"php": "^8.1",
9999
"laravel/framework": "^10.0",
100-
"laravel/spark-stripe": "4.y.z"
100+
"laravel/spark-paddle": "4.y.z"
101101
},
102102
```

src/introduction.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,25 @@ Laravel Spark is the perfect starting point for your next big idea. When combine
1010

1111
## Supported Payment Providers
1212

13-
Spark supports Stripe as its payment provider. **At this time, it is not possible to implement your own custom payment provider when using Spark.**
13+
Spark supports two payment providers, and purchasing a Spark license grants you the ability to use either of these payment providers. **At this time, it is not possible to implement your own custom payment provider when using Spark.** We'll provide a brief overview of each provider below.
14+
15+
### Paddle
16+
17+
[Paddle](https://paddle.com) is a robust billing provider that serves as a merchant of record for your application. Paddle removes the burden of tax compliance from your SaaS business by handling the complexity of gathering and paying your VAT for you. In addition, Paddle provides support for accepting payments from your customers via credit card or PayPal, localized pricing, and hosted invoices.
18+
19+
Spark's Paddle support is provided by the underlying [Laravel Cashier Paddle](https://laravel.com/docs/cashier-paddle) library.
20+
21+
:::warning Paddle Account Approval
22+
23+
Your Paddle account must be approved by Paddle before you can begin using Spark. To apply for an account, please visit the [Paddle website](https://paddle.com). **While you are developing your application, you may use the [Paddle Sandbox](https://developer.paddle.com/getting-started/sandbox)**.
24+
:::
25+
26+
#### Limitations
27+
28+
We have listed some known limitations of using the Paddle payment provider below:
29+
30+
- When a recurring coupon is used while subscribing to a plan, the coupon discount will be applied on every billing cycle. However, if the subscription's quantity or plan changes, Paddle will remove the coupon from the subscription.
31+
- Because Paddle does not allow plan quantity changes during trial periods, the Paddle edition of Spark does not support requiring a credit card up front when beginning a trial. All trial periods are started without a credit card or payment method provided up front during the user's initial registration process.
1432

1533
### Stripe
1634

@@ -36,12 +54,12 @@ You may not sell Spark powered applications on code distribution platforms such
3654

3755
#### **Does Spark support any other payment providers?**
3856

39-
No. Spark only supports Stripe and it is not possible for developers to customize Spark to accept additional providers. If you need to use another payment provider **you should not purchase Laravel Spark**.
57+
No. Spark only supports Stripe and Paddle and it is not possible for developers to customize Spark to accept additional providers. If you need to use another payment provider **you should not purchase Laravel Spark**.
4058

4159
#### **Am I required to use Tailwind / Blade / Vue / etc. in order to use Spark?**
4260

4361
No. Spark's billing portal is totally isolated from the rest of your Laravel application and includes its own pre-compiled frontend assets. Your own application may be built using the frontend technologies of your choice.
4462

4563
#### **Why are my customers presented with a payment confirmation screen?**
4664

47-
Extra verification is sometimes required in order to confirm and process a payment. When this happens, Stripe will present a payment confirmation screen. Payment confirmation screens presented by Stripe or Spark may be tailored to a specific bank or card issuer's payment flow and can include additional card confirmation, a temporary small charge, separate device authentication, or other forms of verification.
65+
Extra verification is sometimes required in order to confirm and process a payment. When this happens, Paddle or Stripe will present a payment confirmation screen. Payment confirmation screens presented by Paddle, Stripe, or Spark may be tailored to a specific bank or card issuer's payment flow and can include additional card confirmation, a temporary small charge, separate device authentication, or other forms of verification.

0 commit comments

Comments
 (0)