Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

#Stripe API + Ruby / WebHookRequest 設定でエンドポイントのURLを変更する例

More than 1 year has passed since last update.

ngrokを利用していると、毎回WebConsoleから設定を変えるのはなかなか面倒だが、設定変更さえAPI経由で可能みたいだ。いいね。

Stripe::WebhookEndpoint.update('we_xxxxxxxxxxxxxxxxxxxxxxx', {url: 'https://example.com/'})

エンドポイントを一覧するには

Stripe::WebhookEndpoint.list

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/3006

YumaInaura
Ruby on Rails 業務経験 約5年 / Perl PHP Python Golang Linux Apache MySQL BigQuery Jenkins ansible AWS など / いなうらゆうま / YumaInaura / 稲浦悠馬
http://twitter.com/yumainaura
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away