[PR #5734] feat(stripe): add payment link support #14434

Open
opened 2026-04-13 09:28:25 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5734

State: open
Merged: No


Summary by cubic

Adds support for Stripe Payment Links in checkout session completion so sessions created via payment links correctly attach to users and create initial subscriptions.

  • New Features
    • Detect sessions from payment links when referenceId and subscriptionId are missing.
    • Look up user by customer email (honors requireEmailVerification), set referenceId to user.id, and persist stripeCustomerId.
    • Create an initial "incomplete" subscription with plan, customer ID, and seats from item quantity.

Written for commit 862a2c9672. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5734 **State:** open **Merged:** No --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds support for Stripe Payment Links in checkout session completion so sessions created via payment links correctly attach to users and create initial subscriptions. - **New Features** - Detect sessions from payment links when referenceId and subscriptionId are missing. - Look up user by customer email (honors requireEmailVerification), set referenceId to user.id, and persist stripeCustomerId. - Create an initial "incomplete" subscription with plan, customer ID, and seats from item quantity. <sup>Written for commit 862a2c967215846605f50dcf48be18c199a92bb7. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:28:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14434