#_wesley974
1 messages · Page 1 of 1 (latest)
Hi there, so you want some example for subscription mode checkout?
I need after a success payment, record the email in my database.
Then allow the user to parse a full doc.
On the success I wish to communicate the user's email to by backend to record.
Can we do that with a webhook?
Listening success payment?
Yes you are right, you can listen to payment_intent.suceeded webhooks
ok for that!
Now, what's about the billing? I need to let the client to download his invoice.
Are you talking about subscirptions or just invoices?
These are two different Stripe products
Only selling one product, so a one time payment, not a subscription.
I know that Stripe (for subscription) offer a billing portal.
But what's about billing when using one-time payment?
You don't need to use billing for one-time payment
https://support.stripe.com/questions/choosing-between-payment-links-invoicing-checkout-and-payment-element follow this guide to pick an integration that works for you
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation and here's how to generate a post-purchase invoice if you choose to use checkout session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.