#whip-setintent
1 messages · Page 1 of 1 (latest)
hi there, you would want to listen for the setup_intent.succeeded webhook event and execute your action based on that.
No that's a different thing and I already have a different event setup to do that. So I'm tracking 2 events, 1 when user submits the payment form, 2nd when the setup is actually complete.
Maybe then I can use setup_intent.created webhook?
can you share a bit more on what you're trying to do with the SetupIntent?
It'll be used for a subscription
What do you think about this?
i'm going to need to know what you're trying to do in detail before i can advise further
why is it that setup_intent.succeeded doesn't work for your use case, and why are you looking to action upon setup_intent.created instead? What specifically are you trying to do?
I have 2 events on Facebook.
- Subscription intent: when user submits the subscription form and shares the payment details.
- Subscription ready: When we have the payment method ready to use.
We usually get a decent number of failed setups so we have 2 events
you want to execute a js code when a setup intent successfully confirms - what will this js code do? Are you displaying the status of the setup intent on your website?
I have to send pixel event. Looks like this
fbq('track', 'Subscribe', {value: '18.95', currency: 'AUD'});
stripe returns query parameters when the customer is redirected back to your page. You can make use of those parameters to query for the SetupIntent status and then run the JS script - https://stripe.com/docs/payments/save-and-reuse#web-submit-payment-details