Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe: "charge.succeeded" webhook not firing for connected account. Wrong event type name?

I suppose that a fundamental question I really ought to be asking, before I get into the details below, might be:

As a vendor/service-provider with a standalone Stripe account that's been connected to a platform account, is it possible for me to set up a webhook that will be called when the platform makes a successful charge on my behalf?

In any case, that's what I'm trying to do, with a webhook that I set up on the recipient account, configured to be called for any of the following events:

enter image description here

Test invocations of the webhook from my dashboard cause it to fire as expected.

But when when I create a charge through the platform, setting destination to reference the connected account, the webhook doesn't fire -- even though the charge is successfully created, along with an accompanying event, in the connected account.

One big fat clue -- that I don't know how to interpret -- is that the type of the event shown in the dashboard's "Events & Webhooks" tab isn't charge.succeeded or charge.captured -- it's payment.created (!).

But:

  • there's no event type with that name listed in the webhook configuration menu;
  • nor, as far as I can tell, does the API define a payment object type (and indeed, the type of the object referenced in the event is charge):

enter image description here

So:

Is this just a naming glitch in the API implementation that Stripe simply needs to fix?

Or is there some more fundamental problem that I'm failing to grasp with the idea of setting a webhook on a connected standalone account that I own?

(Or am I just doin' it wrong?)

like image 215
Hephaestus Avatar asked Nov 20 '22 12:11

Hephaestus


1 Answers

At the moment, the payment.created event is not visible in the list of selectable events, so you'd have to check "Send me all events" when creating the webhook endpoint in order to receive those.

like image 159
Ywain Avatar answered Dec 04 '22 06:12

Ywain