#jber
1 messages · Page 1 of 1 (latest)
Hi, what is the 'some action' in this case?
Once this 'action' is made, you'd want to trigger a payment for the Payment Method you got from the Setup Intent, is that correct?
re: #1 We're providing a new service to our users through a third party that entails a long intake process. We don't want to charge users until they've completed the intake process, but we don't have an opportunity to collect their payment details between when intake is complete and the service is rendered.
and re: #2, yup, that's correct
I see, you can listen to the this event, setup_intent.succeeded https://stripe.com/docs/api/events/types#event_types-setup_intent.succeeded and likely want to store the customer id.
cool, thanks! I assume there is also an option to just get the customer by their email or something at the time we need to create the payment intent?
(as an alternative way to retrieve the customer id)
Yes, you can use out Search Customers API here, https://stripe.com/docs/api/customers/search
excellent - is one way or the other recommended, or is it just up to our preference?
It is up to your preferences mostly but it's easier to listen to the above webhook event and store the customer id.
cool, thanks for your help!