#pagaok-payments

1 messages · Page 1 of 1 (latest)

potent ridge
#

Hello! Can you summarize the behavior you want to happen instead?

jovial minnow
#

payment looks correctly addressed to the connected account...

I'm expecting this webhook we_1LUTibAti7rRHD03lra3b87p

to be triggered... but I see not logs neither in stripe nor in my platform ...

#

unless I made some mistake in webhook configuration

potent ridge
#

Which event do you want to be sent? The payment_intent.succeeded event?

jovial minnow
#

I'm expecting that one....

but I'm listening all these
payment_intent.amount_capturable_updated
payment_intent.canceled
payment_intent.created
payment_intent.partially_funded
payment_intent.payment_failed
payment_intent.processing
payment_intent.requires_action
payment_intent.succeeded

but my server is not called

potent ridge
#

If that's the event you're expecting, then the webhook configuration you have is incorrect - the PI you sent over was created directly on the platform account and the payment_intent.xxx events will be sent to the normal account webhook. They aren't sent to your webhook endpoint at we_1LUTibAti7rRHD03lra3b87p because that's a connect webhook, which only listens for those events when they happen directly on the connect accounts (using the Stripe-account header). You need to create a new webhook that is a normal webhook - not a connect one

jovial minnow
#

what's wrong in my code, to have the payment to connected account instead of normal account ?

or on the other hand
if I go to connect account I see the customer account that received the payment (t3@alexdran.net)

as far as I have understood is a connected account (unless I'm wrong)

https://dashboard.stripe.com/connect/accounts/acct_1L58tQPEXCgis1uG/payments/py_1LX9J7PEXCgis1uGp5rMOmKC

potent ridge
#

The kind of payments you're doing are destination payments - https://stripe.com/docs/connect/destination-charges. They are created on the Platform, and then a portion of the funds are transferred to the connected account. The Payment Intent itself is on the Platform, which again, is why you need a normal webhook endpoint (not a connect one) on the platform to listen to these events.

jovial minnow
#

got it, I have to adapt my webhook then!

#

thanks