Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Stripe CLIの活用
Search
MaedaKeisuke
January 27, 2020
Programming
0
36
Stripe CLIの活用
MaedaKeisuke
January 27, 2020
Tweet
Share
More Decks by MaedaKeisuke
See All by MaedaKeisuke
AWSを用いたフロントエンド開発
maeda
8
3.3k
エンジニア目線から見たキャッシュレスの話
maeda
0
76
スマホアプリでのStripe決済
maeda
0
690
Other Decks in Programming
See All in Programming
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
810
Ruby Pattern Matching
bkuhlmann
0
930
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
1
110
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
770
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
920
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
350
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
180
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
GitHub Copilotのススメ
marcy731
1
200
Featured
See All Featured
Robots, Beer and Maslow
schacon
PRO
155
7.9k
Bash Introduction
62gerente
604
210k
A designer walks into a library…
pauljervisheath
200
23k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
43k
Designing the Hi-DPI Web
ddemaree
276
33k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
Building Your Own Lightsaber
phodgson
99
5.7k
KATA
mclloyd
15
12k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
116
18k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
Facilitating Awesome Meetings
lara
42
5.6k
Transcript
Stripe CLIͷ׆༻ # JP_Stripes By લా ܓհ(CI. inc,)
લాܓ հ גࣜձࣾCI WEBΤϯδχΞ ࣗݾհ W o r k s
Server: AWS Front: React Back: PHP, Go, Ruby Etc.. Unity S N S https://twitter.com/voyagesister https://github.com/ScenicFlighter https://as-rule.io 2
3 StripeͷػೳɺAPIΛTerminalͰςετͰ ͖Δͷɻ Stripe CLIͱɻ https://stripe.com/docs/stripe-cli ެࣜ
4 Stripe CLIͰग़དྷΔࣄɻ 1. Webhookػೳͷςετ 2. APIϩάͷ֬ೝ 3. APIͷ࣮ߦ
Webhook ΠϕϯτΛτϦΨʔʹɺ ҙͷΤϯυϙΠϯτΛୟ͘ɻ ܾࡁͷྃ࣌… ސ٬͕ొ͞Εͨ࣌… ͳͲ…
6 Webhookڞ௨ͷͱͯ͠ localhostͰͷςετ͕Ͱ͖ͳ͍ɻ ʮngrokʯΛ͑ɺղܾग़དྷΔ͕ɺϩʔΧϧ͕ ֎෦ʹެ։͞ΕΔͷ͕ηΩϡϦςΟతʹ৺…
Stripe CLIͷಋೖखॱ brewͷ߹ Macͷ߹ Windowsͷ߹ Dockerͷ߹
Stripe CLIͷಋೖखॱ > stripe login ϒϥβ
Stripe CLIͰͷWebhook > stripe listen stripe্ͷΠϕϯτΛͪड͚Δ(tailঢ়ଶ) ↓ stripe triggerͰΠϕϯτΛ࣮ߦͰ͖Δɻ
Stripe CLIͰͷWebhook > stripe listen —forward-to {{ENDPOINT}}
Stripe CLIͷίϚϯυ https://github.com/stripe/stripe-cli/wiki/commands#
12 ݁ Webhookͷςετָ͕ʹͳΔ APIͷϩάStripeͷεςʔλε֬ೝָ͕ʹͳΔ ։ൃָ͕ʹͳΔ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ # JP_Stripes By લా ܓհ(CI. inc,)