#mymo-connected-webhook
1 messages · Page 1 of 1 (latest)
You can set up a Connect Webhook on your platform account to see events for all of your connected accounts https://stripe.com/docs/connect/webhooks
great, thanks!
And for the event paymentIntent.created, can I use it? Or it's only the .succeeded one that's available?
(I need to update the paymentIntent by adding an application_fee_amount on it before it gets processed)
Why can you not set application_fee_amount when it is created?
That event should be available for your pplatform
since we are using woocommerce and it's stripe payment gateway, we though it would be "better" to hook on the paymentIntent when it is in Stripe
Otherwise, if we hook on the paymentIntent.succeeded, would it be too late to add the application_fee_amount? I mean, is the payment already made there? Or the charge is made after it?
@sleek abyss https://stripe.com/docs/api/events/types#event_types-payment_intent.created there's a created event in the docs
but at a high level there's a problem somewhere in the way you approach this. You can not set the application fee after creation if you didn't create the PaymentIntent, you can't add an application fee, you don't own that PaymentIntent
As a platform you would be the one, with your own code, creating the PaymentIntent in the first place and setting the application fee at that stage.
Oh, I get it... you're right!
I would then need to hook on woocommerce before they send the paymentIntent to Stripe? Then create it myself I guess?
This might be a thing to go to Woocommerce's docs and support for if this is working with their integration
Just to clarify, there's then no way I could get the application_fee_amount applied on your side? It has to be on woocommerces' ?
@sleek abyss I don't think that's even possible with WooCommerce, they are already a platform themselves
What would I need to check to see if it is or not? I'm new at this, I checked the docs on both side and can't figure out how to do it if I can't hook somewhere to add it..
@sleek abyss I've explained before, you can't do a hook and add it somewhere, that's just not possible. You would have to punt on WooCommerce and build your entire Stripe Connect integration yourself
Well.. ok, thanks for your help! 🙂