#bwurtz999 - Connect webhooks with CLI
1 messages · Page 1 of 1 (latest)
Happy to help! Can you share any errors you're seeing or which step you're stuck on?
The local listener is registered in the dashboard
But are those 405 errors?
My application backend isn't registering the webhooks
Hm, I see you're using Connect
Yes
Webhooks (including a local listener) are set up on your platform account
The platform account has only been configured with account endpoints, not connect endpoints
$paymentIntent = $stripe->paymentIntents->create([
'amount' => 50,
'currency' => 'usd',
'payment_method_types' => ['card', 'card_present'],
'capture_method' => 'manual',
], [
'stripe_account' => $this->stripe_act
]);
This is how I'm creating the payment intent
That's all fine. This means the PaymentIntent is being created on the stripe_account
Right. It goes straight to the connected account
Does this mean I can't access the webhook?
As the platform?
I recommend trying this if you haven't already: https://stripe.com/docs/connect/webhooks#test-webhooks-locally
stripe listen --forward-connect-to
Oh nice. And I'm forwarding to the platform account?
using the above command will set up a local listener on your platform for connect account-specific events
OK thank you!
And will I need to do anything special in production for this to work?
the full command should be stripe listen --forward-connect-to [insert_local_url here]
ohhhh
I recommend reviewing this in full to understand the difference between "Account" webhooks and "Connect" webhooks: https://stripe.com/docs/connect/webhooks
bwurtz999 - Connect webhooks with CLI