Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage Webhook Endpoints #141

Open
tansengming opened this issue Jan 14, 2019 · 5 comments
Open

Manage Webhook Endpoints #141

tansengming opened this issue Jan 14, 2019 · 5 comments
Labels

Comments

@tansengming
Copy link
Owner

tansengming commented Jan 14, 2019

The Stripe API allows management of webhoook endpoints through the API. I wonder if this might be a useful addition to the gem.

@clwang
Copy link

clwang commented Jan 8, 2020

@tansengming - I was looking at this issue. I was wondering if there is support to manage which API version of the webhook you want to use when upgrading webhook versions. As stated by step number 2 here under webhooks. https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api

@tansengming
Copy link
Owner Author

@clwang here's a way to force the API version with the ruby client https://github.com/stripe/stripe-ruby#configuring-an-api-version

@clwang
Copy link

clwang commented Jan 9, 2020

@tansengming - This only controls the API version of the requests going to Stripe, but the webhooks API version is based off the version you set when setting up the webhook API endpoint. If you need to upgrade the API version for the webhook endpoint address, you need to recreate one. I was just seeing if there is a feature in the stripe-rails gem that would allow you to specify or reject webhook requests based off the a version you configure for testing or upgrade purposes.

@tansengming
Copy link
Owner Author

Hi @clwang apologies for giving you the wrong answer, then forgetting to get back to you with the right one.

The short answer is: No. Nothing in the gem let's you reject webhook requests based off a configured version. https://github.com/tansengming/stripe-rails/search?q=api_version&unscoped_q=api_version

The Stripe Webhook Docs do mention an optional api_version argument. So if someone decides to build this Webhook Endpoint management feature, it'll be a good place to start.

@wonderer007
Copy link

@tansengming @clwang I am receiving #178 when application receive web hook from Stripe.

Can you please comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants