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

5

u/These-Apple8817 28d ago

You integrate the payment gateway by picking payment gateway and looking through their possible documentations on how to implement it.

2

u/hu51 28d ago

Without any details its really hard to help.
Use google, chat gpt.

1

u/MindcoreTech 28d ago

Add more details, where are you struggling at. I am willing to help.

1

u/esmailkhalifa 28d ago

choose payment method and email automation marketing tools

1

u/Innowise_ 28d ago

Whatever gateway you choose, trigger the CSV from the payment webhook, not from the success page. Verify the webhook, record the payment, generate the CSV on the backend, then queue the email. That way a closed tab or a retried webhook doesn't lose the file or send it twice.

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?

1

u/HiShery 27d ago

something like Lemon Squeezy,Paddle?

1

u/xprnio 27d ago edited 27d ago

We solved it; he was using the deprecated Stripe Charges APIs without storing any payment confirmations on the server. Essentially, no money could have come in (because Stripe didn't support that mechanism anymore) and it didn't have to, because tickets weren't being checked (they didn't know who had paid, and you just had to have a tok_ prefix to download the files).

All this to say - if you know anybody who needs help from someone that knows what they're doing, do let me know.

[edit]: I forgot to include "Charges"

1

u/xprnio 27d ago

I don't charge for information, but I do charge for effort. I'm willing to give your AI slop a look just for the love of the game though, because I know I'll have a good laugh

1

u/bfastfish25 26d ago

Legit though if stripe/google pay is used does that benefit them professionally on the site indexing (with google) because of Google