#bwurtz999 - Connect webhooks with CLI

1 messages · Page 1 of 1 (latest)

eternal eagleBOT
grim garnet
#

Happy to help! Can you share any errors you're seeing or which step you're stuck on?

frank quartz
#

The local listener is registered in the dashboard

#

But are those 405 errors?

#

My application backend isn't registering the webhooks

grim garnet
#

Hm, I see you're using Connect

frank quartz
#

Yes

grim garnet
#

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

frank quartz
#
$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

grim garnet
#

That's all fine. This means the PaymentIntent is being created on the stripe_account

frank quartz
#

Right. It goes straight to the connected account

#

Does this mean I can't access the webhook?

#

As the platform?

grim garnet
#

stripe listen --forward-connect-to

frank quartz
#

Oh nice. And I'm forwarding to the platform account?

grim garnet
#

using the above command will set up a local listener on your platform for connect account-specific events

frank quartz
#

OK thank you!

#

And will I need to do anything special in production for this to work?

grim garnet
#

the full command should be stripe listen --forward-connect-to [insert_local_url here]

frank quartz
#

ohhhh

grim garnet
#

bwurtz999 - Connect webhooks with CLI