#mymo-connected-webhook

1 messages · Page 1 of 1 (latest)

regal hornet
sleek abyss
#

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)

regal hornet
#

Why can you not set application_fee_amount when it is created?

#

That event should be available for your pplatform

sleek abyss
#

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?

feral tiger
#

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.

sleek abyss
#

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?

regal hornet
#

This might be a thing to go to Woocommerce's docs and support for if this is working with their integration

sleek abyss
#

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' ?

feral tiger
#

@sleek abyss I don't think that's even possible with WooCommerce, they are already a platform themselves

sleek abyss
#

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..

feral tiger
#

@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

sleek abyss
#

Well.. ok, thanks for your help! 🙂