#SCIF
1 messages · Page 1 of 1 (latest)
Hi, Yes. You'd use the collection method and set it to send invoice: https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
I saw this option but I'm curious about UX. My integration works like:
- customer input CC details and coupon code
- FE sends those details to BE
- BE creates a subscription on Stripe and returns client_secret to FE
- FE triggers
stripe.confirmPayment()and customer's CC details are validated, 3ds check triggered, etc - Once customer confirmed the payment, it's redirected to thank-you page.
Does it mean that changing collection_method to send_invoice will lead to sending the invoice letter to the customer's email after #3 of my flow? Considering the fact that all 5 steps are happening within a short time (5-20 seconds), customer will note the invoice after the payment actually came through?
That is correct, after the subscription is created with that collection method, an email will be sent.
I assume that Stripe does not send any email in test mode. Am I correct?