Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Stripe payment links #1926

Merged
merged 15 commits into from
Jan 24, 2025
Merged

Support Stripe payment links #1926

merged 15 commits into from
Jan 24, 2025

Conversation

steven-tey
Copy link
Collaborator

@steven-tey steven-tey commented Jan 20, 2025

We have received multiple feedback for adding support for Stripe payment links, so here's a PR that adds this.

The logic:

  • If there's a dubCustomerId passed via the webhook metadata object, it means that this is a usual click → lead → sale setup with Stripe, so we go with our existing flow
  • If there's no dubCustomerId but client_reference_id.startsWith("dub_id_"), this means that the user passed the dub_id as the client_reference_id, so we create a new lead event + customer object on the fly and pass that to the remaining sale-tracking logic.

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dub ✅ Ready (Inspect) Visit Preview Jan 24, 2025 5:29am

@steven-tey steven-tey requested a review from devkiran January 20, 2025 22:27
@steven-tey steven-tey merged commit 7be523e into main Jan 24, 2025
5 of 6 checks passed
@steven-tey steven-tey deleted the payment-links branch January 24, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant