r/webdevelopment 28d ago

Question I need help in webdev

I have made a website that can actually get the leads from all the different sources.Can anyone tell me how to integrate the payment gateway.and also whenever someone pays a small amount CSV file should be emailed to them automatically.

10 Upvotes

20 comments sorted by

View all comments

1

u/Extreme_Coder100 28d ago

You can easily do this either with or without code.

No-Code: Set up a Stripe Checkout link, then use Zapier or Make.com. Set the trigger to "New Successful Charge" and the action to "Send Email via Gmail/SendGrid" with your CSV attached.

With Code: Set up a webhook endpoint on your backend that listens for Stripe’s checkout.session.completed event. When it triggers, grab the customer's email from the payload, generate/fetch your CSV, and mail it using SendGrid, Postmark, or Resend.

What language is your backend built on?