teamtnt / php-stripe-webhook-tester

A PHP package for testing Stripe Webhooks localy
MIT License
97 stars 24 forks source link

Make webhooks comply with Connect endpoint schema #6

Closed theshaunwalker closed 8 years ago

theshaunwalker commented 8 years ago

Hey,

Firstly awesome package, saved a lot of time bootstrapping this stuff for running my own tests so thanks!

Webhooks were missing an additional top level "user_id" field which contains an account ID and is used in webhooks sent to a Connect endpoint.

This would be non-BC as it doesnt exist in regular webhooks so any current tests would be ignoring it.

Not sure when the Connect specific endpoints were introduced so I've only modified the current latest version which is what I'm using where I know it exists.

nticaric commented 8 years ago

Thanks!