Replacing Lemon Squeezy Customer Portal in Stripe Managed Payments
Most Lemon Squeezy SaaS apps wire their “Manage billing” and “Update card” buttons to pre-signed URLs on the Lemon Squeezy subscription object (urls.customer_portal, urls.update_payment_method, urls.customer_portal_update_subscription) or to the unsigned https://[STORE].lemonsqueezy.com/billing link. Migrated subscriptions are billed by Stripe, so those buttons need new destinations, and Lemon Squeezy stops processing on March 31, 2027.
In Stripe Managed Payments, buyers get two billing surfaces—Link (automatic) and Stripe Customer Portal (optional in-app integration)—plus one API restriction that breaks custom card-update forms.
1. Direct URL and flow map
| Lemon Squeezy | Stripe Managed Payments equivalent | Key difference |
|---|---|---|
urls.customer_portal (signed, valid 6 hours) |
stripe.billingPortal.sessions.create({ customer, return_url }) |
Create on demand when the user clicks; do not cache or store the session URL. |
urls.update_payment_method (signed, valid 6 hours; often opened via Lemon.js modal) |
billingPortal.sessions.create with flow_data: { type: 'payment_method_update' } |
Hosted redirect, not an in-page Lemon.js modal. Hides other portal navigation so the user only updates their payment method. Check the subscription-level default (section 2). |
urls.customer_portal_update_subscription (signed, valid 6 hours) |
billingPortal.sessions.create with flow_data: { type: 'subscription_update', subscription_update: { subscription } } |
Also supports subscription_update_confirm (for your own pricing page), subscription_cancel, subscription_pause, and customer_update. |
Unsigned https://[STORE].lemonsqueezy.com/billing |
No-code Stripe portal login link (https://billing.stripe.com/p/login/...) or link.com |
Supports ?prefilled_email=..., but see the duplicate-customer caveat below. |
Lemon Squeezy My Orders |
Link (link.com) |
Automatic for Managed Payments buyers: order history, cancel/update subscriptions, payment methods, billing address, and 24/7 payment support. |
Sources: Lemon Squeezy Customer Portal guide, Subscription object API, and Managed Payments comparison; Stripe How Managed Payments works, Portal deep links, and No-code customer portal.
2. The Managed Payments API trap: you cannot update default_payment_method directly
subscription.default_payment_method directly through the API. Customers can update this field through the Customer Portal.
If your app previously tried to build a custom “update card” form or expected to swap payment methods server-side, start with a payment_method_update portal deep link, then run the check below:
// Node.js (Stripe Customers v1: cus_... created by Checkout or the Migration Toolkit)
// Untested snippet — verify in a Stripe sandbox before shipping.
const session = await stripe.billingPortal.sessions.create({
customer: user.stripeCustomerId,
return_url: 'https://example.com/account/billing',
flow_data: {
type: 'payment_method_update',
after_completion: {
type: 'redirect',
redirect: {
return_url: 'https://example.com/account/billing?card_updated=1',
},
},
},
});
res.json({ url: session.url });
Notice the two redirect URLs: top-level return_url is the “back to app” link if the customer leaves without updating, while flow_data.after_completion.redirect.return_url fires immediately after the payment method is saved.
payment_method_update sets the customer’s invoice_settings.default_payment_method. A subscription-level default_payment_method takes precedence over it. If a subscription has one set, the new card may not be used at renewal. In a sandbox, run the flow, then retrieve the subscription and confirm which payment method it will charge. If it still shows the old one, send customers to the full Customer Portal or Link to change it on the subscription, and verify that path the same way. We have not tested either.3. Deep links for plan changes and cancellations
To replace urls.customer_portal_update_subscription (or add a dedicated cancel button), pass the Stripe subscription ID in flow_data and make sure the matching feature is enabled in your Stripe Customer Portal configuration:
// Plan upgrade/downgrade deep link (requires features.subscription_update enabled in Portal settings)
const session = await stripe.billingPortal.sessions.create({
customer: user.stripeCustomerId,
return_url: 'https://example.com/account/billing',
flow_data: {
type: 'subscription_update',
subscription_update: {
subscription: user.stripeSubscriptionId,
},
},
});
For cancellations, swap type: 'subscription_update' for type: 'subscription_cancel' with subscription_cancel: { subscription: user.stripeSubscriptionId }. Remove any lemon.js modal hooks (LemonSqueezy.Url.Open(...)) on migrated accounts; Stripe Customer Portal opens via a normal page redirect.
4. Dual-portal routing during the cutover window
Most stores cannot move every subscriber in a single day. PayPal and usage-based subscriptions cannot migrate automatically, and eligible batches have a 14-day customer notice period. That means for weeks you will have active subscribers on both Lemon Squeezy and Stripe at the same time.
Do not hard-switch your billing button to Stripe until zero active subscribers remain on Lemon Squeezy. Route by billing provider on your server:
// POST /api/billing-portal (illustrative Node.js handler; untested)
app.post('/api/billing-portal', requireAuth, async (req, res) => {
const user = await db.getUserBilling(req.user.id);
if (user.billingProvider === 'stripe' && user.stripeCustomerId) {
const session = await stripe.billingPortal.sessions.create({
customer: user.stripeCustomerId,
return_url: 'https://example.com/account/billing',
});
return res.json({ url: session.url });
}
if (user.billingProvider === 'lemonsqueezy' && user.lsSubscriptionId) {
const { data } = await getSubscription(user.lsSubscriptionId);
return res.json({ url: data.attributes.urls.customer_portal });
}
return res.status(404).json({ error: 'No active subscription found' });
});
Also keep your Lemon Squeezy webhook listener running for unmigrated subscribers, and update billingProvider to 'stripe' only after a subscription has migrated (see our 11 Migration Hub gotchas on the subscription_migrated webhook).
5. No-code login link gotcha: duplicate Stripe customers
If you prefer an unsigned link like Lemon Squeezy’s https://[STORE].lemonsqueezy.com/billing, Stripe lets you activate a no-code portal login link (https://billing.stripe.com/p/login/...) in Dashboard → Customer Portal settings, with optional ?prefilled_email=....
- Duplicate-customer ambiguity: The Lemon Squeezy Migration Toolkit does not match migrated Lemon Squeezy customers to existing Stripe customer records, so existing Stripe accounts can end up with duplicate customers sharing an email. Per Stripe’s no-code portal docs, when multiple customers share an email, the login link picks the most recently created customer that has both that email and an active subscription.
- No email edits: Customers cannot change their email address through the no-code login link.
- Recommendation: Use API-created sessions keyed to your stored
stripe_customer_idinside logged-in apps, and reserve the no-code link (orlink.com) for logged-out help pages and emails.
6. Warn customers before they see Link
After cutover, Managed Payments receipts, invoices, and refund emails come from Link, bank statements change from LEMSQZY* ... to LINK.COM* [Your statement descriptor], and guest buyers are prompted to create a Link account to view orders. Custom domains are not supported on Managed Payments checkouts.
If you switch portals without warning buyers first, expect “who is Link?” support tickets and chargeback confusion. Update your help page and send a short heads-up before your first batch. The Lemon Squeezy Cutover Kit ($9) includes 5 fill-in customer notice templates (including the Link descriptor and new billing-portal wording) plus 10 verification test scripts.
7. Pre-cutover portal test checklist
- Enable and save your Stripe Customer Portal configuration in the sandbox first (Stripe returns an error if no default configuration exists).
- Test a full portal session, a
payment_method_updatedeep link, and asubscription_cancelorsubscription_updatedeep link in the sandbox and verify bothreturn_urlpaths. - Confirm your webhook handler processes
customer.subscription.updatedandcustomer.subscription.deletedtriggered from portal actions. - Test a dual-provider account pair: one user still on Lemon Squeezy and one user on Stripe, confirming each lands in the right portal.
- Check your Stripe catalog tax codes before live checkout cutover with our client-side Tax-Code Checker.
Related
See where Lemon Squeezy custom_data goes in Stripe, 11 Migration Hub gotchas, the full LS migration checklist, and fixes for unsupported Managed Payments parameters and missing product tax codes.
This page is free. The kit is the paperwork.
Everything above is the technical mapping. The Lemon Squeezy Cutover Kit ($9, 10-page PDF) is what you fill in and send:
| This page (free) | Cutover Kit ($9) | |
|---|---|---|
| Official dates, rules, Hub traps | Linked | Yes, in one table, each with “what it means for you” |
| Route decision (Managed Payments / MP + add-ons / other provider) | No | 5-minute decision tree |
| Week-by-week schedule | No | 8-week plan for each route |
| Customer emails | No | 5 fill-in templates (heads-up, PayPal, India cards, last call, help page) |
| Test scripts | 5 portal checks | 10 end-to-end scripts with pass criteria |
| Worksheets | No | Link inventory, subscriber segmentation, reconciliation |
Read a sample: Template 1 (heads-up email)
Subject: A change to how [Product] billing works on [date]
Hi [name], Lemon Squeezy, which handles our payments, stops processing on 31 March 2027, so we’re moving billing to [new provider] on or around [confirmed date]. [Only if confirmed: Your plan, price and renewal date stay the same.] After the move your statement will show [exact descriptor], and you’ll manage billing at [where]. You may also get an official notice from [provider]. That one is genuine. Questions? Just reply to this email.
Instant PDF delivery via Getly. Pay by card, Apple/Google Pay, or USDT/USDC. Getly offers a 30-day refund request window. Selling from a country without Stripe? See Getting Paid Online Without Stripe ($7).