Skip to content

Payment Providers ​

Using one of these payment packages? Then you track payments with one line of config. No migration, no payment model, no webhook listener. Available since version 6.2 of the Laravel client.

Your provider is not listed, or you store payments in your own table? That works just as well: implement one interface on your payment model, see How to track a new payment.

Setup ​

Set the provider class in your config and leave the payment model empty:

php
//config/simplestats-client.php

use SimpleStatsIo\LaravelClient\PaymentProviders\CashierStripe;

    'tracking_types' => [
        // ...

        'payment' => [
            'provider' => CashierStripe::class,
            'model' => null,
        ],
    ],

Two things are needed for every provider:

  • Your user model implements TrackablePerson, as described in How to track a new user. Payments are linked to the paying user, which is what attributes revenue to the channel the user came from. If your billable model is not a user (for example a team), use your own payment model instead.
  • A queue worker runs, because the payments of some providers (and Paddle refunds) are processed as queued jobs. See Queue.
  • Your webhook receives the events listed for your provider below. Cashier and the other packages do not enable them for you. An event that is not enabled in your provider's dashboard never reaches your app, so its payments or refunds are silently missing.

Then check the setup:

bash
php artisan simplestats:status

It shows the active provider and tells you when its package is missing or when a payment model is set as well.

What gets tracked ​

  • Only completed payments. Pending or failed payments are skipped, an authorization without capture as well.
  • Refunds update the payment to the amount that is left. A full refund removes the payment, so it no longer counts as revenue, paying user or subscription.
  • Gross and net. Net is the gross amount without the tax share.
  • Subscriptions. Monthly and yearly plans are tracked with their interval and plan name, which powers MRR and ARR. Other billing cycles (weekly, quarterly) count as one time payments.

Cashier Stripe ​

Package: laravel/cashier

php
'provider' => \SimpleStatsIo\LaravelClient\PaymentProviders\CashierStripe::class,

Cashier Stripe stores no payments, so the client listens to Cashier's webhook and reads each charge from the Stripe API.

Enable the charge events

Cashier's webhook endpoint does not receive charge events by default, and without them no payment is tracked. In your Stripe dashboard, add these events to the endpoint of your Cashier webhook (/stripe/webhook):

charge.succeeded, charge.captured, charge.refunded, charge.refund.updated, charge.dispute.closed

Good to know:

  • Net is read from the invoice. Payments without an invoice (for example a one time Checkout payment) are tracked with net equal to gross.
  • Charges without a Cashier customer (guest payments) are not tracked, because they belong to no user.
  • A lost dispute is handled like a refund.

Cashier Paddle ​

Package: laravel/cashier-paddle

php
'provider' => \SimpleStatsIo\LaravelClient\PaymentProviders\CashierPaddle::class,

Payments are tracked from the transactions Cashier stores. Paddle books refunds as adjustments, which Cashier does not process, so the client reads them from the webhook itself.

Enable the transaction and adjustment events

Without the adjustment events, refunds are not tracked. In your Paddle dashboard, add these events to the notification destination of your Cashier webhook (/paddle/webhook):

transaction.completed, transaction.updated, adjustment.created, adjustment.updated

A refund is tracked once Paddle has approved it, which can take a while after you issued it.

Cashier Mollie Beta ​

Beta

This provider is covered by automated tests, but not yet tested against a live Mollie account. Payments missing or wrong? Please open an issue.

Package: mollie/laravel-cashier-mollie

php
'provider' => \SimpleStatsIo\LaravelClient\PaymentProviders\CashierMollie::class,

Payments are tracked from the orders Cashier Mollie stores, first payments as well as renewals. There is nothing to enable in your Mollie dashboard, Cashier sets the webhook for every payment itself.

Refunds

Cashier Mollie only processes refunds started through Cashier (for example $order->refundCompletely()). A refund made directly in the Mollie dashboard does not reach your app and is therefore not tracked.

Polar Beta ​

Beta

This provider is covered by automated tests, but not yet tested against a live Polar account. Payments missing or wrong? Please open an issue.

Package: danestves/laravel-polar (requires PHP 8.3)

php
'provider' => \SimpleStatsIo\LaravelClient\PaymentProviders\Polar::class,

Polar creates an order for every purchase and every subscription cycle, so renewals are tracked like purchases.

Enable the order events

Without these events, payments and refunds are not tracked. In your Polar webhook settings, enable:

order.paid, order.refunded

Lemon Squeezy Ending ​

Lemon Squeezy is winding down

Lemon Squeezy closed new sign ups on November 16, 2026 and stops processing payments on March 31, 2027. Existing stores move to Stripe Managed Payments, see the Lemon Squeezy migration guide. This provider keeps working for existing stores until then. It is not tested against a live Lemon Squeezy account, since new test accounts are no longer possible.

Package: lemonsqueezy/laravel

php
'provider' => \SimpleStatsIo\LaravelClient\PaymentProviders\LemonSqueezy::class,

Every purchase is an order, including the first payment of a subscription. Renewals are tracked from the subscription invoices.

Enable the order and subscription events

Without these events, payments and refunds are not tracked. In your Lemon Squeezy webhook settings, enable:

order_created, order_refunded, subscription_created, subscription_payment_success, subscription_payment_refunded

Switching from your own payment model ​

Already tracking payments with your own model? Set provider, set model to null and remove the contract from your model. Payments you tracked before stay as they are.

  • Cashier Paddle, Lemon Squeezy: if your model extended the package's model (Laravel\Paddle\Transaction, LemonSqueezy\Laravel\Order), the provider uses the same payment ids, so the switch is seamless.
  • Any other own model: the providers of Cashier Paddle, Cashier Mollie, Lemon Squeezy and Polar use the ids of the package's local orders, which can collide with the ids of your old payments. In that case keep your own model.

Never set provider and model at the same time, or payments are tracked twice.

Your provider is not listed? ​

You have two options:

  1. Use your own payment model. Implement the TrackablePayment contract on the model that holds your payments, see How to track a new payment. This works with every provider and every custom setup.
  2. Write a provider. Any class implementing SimpleStatsIo\LaravelClient\PaymentProviders\PaymentProvider can be set as provider. Look at the built in providers for examples. We are happy to receive a pull request for a provider others can use too.