Lemon Squeezy

Connect Lemon Squeezy (a developer-friendly merchant of record) so orders, subscriptions, and license keys map to CashSDK entitlements.

Lemon Squeezy is a merchant of record built for developers and indie makers: subscriptions, one-off sales, and software license keys with almost no setup. Like other MoRs, it sells your product and handles global tax, so you never touch a VAT return. Connect it to CashSDK and digital-license revenue sits right beside your in-app purchases in one analytics view.

How it works#

1
Connect your store

Add a Lemon Squeezy API key so CashSDK can read your store's products, variants, subscriptions, and license activations.

2
Map variants to entitlements

Each product variant maps to a CashSDK product and the entitlement it unlocks.

3
Reconcile with signed webhooks

Every order, subscription change, and license event is verified and merged into your unified revenue ledger.

Connect Lemon Squeezy#

1
Create an API key

In Lemon Squeezy, go to Settings → API and create a new API key. Copy it.

2
Add it to CashSDK

Open Settings → Billing → Lemon Squeezy in your dashboard and paste the key. It is stored encrypted at rest. Enable Test mode in Lemon Squeezy while you build.

3
Register the webhook

Copy the callback URL from Settings → Billing → Lemon Squeezy and add it in Lemon Squeezy under Settings → Webhooks. Select the order, subscription, and license events, and paste the signing secret back into CashSDK.

Map your catalog#

For each Lemon Squeezy variant, create a matching product in CashSDK and attach the entitlement it unlocks. Recurring and single purchases both flow into your unified revenue timeline.

Test and go live#

1
Test with test mode

With Lemon Squeezy in Test mode and the SDK on csk_pk_…, complete a checkout with a test card. Confirm the entitlement is granted and the order appears under Events.

2
Switch to live

Disable test mode, swap in your live API key and signing secret, and move the SDK to csk_pk_….

Next steps#