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
53
Stripe CLIの活用
MaedaKeisuke
January 27, 2020
Tweet
Share
More Decks by MaedaKeisuke
See All by MaedaKeisuke
AWSを用いたフロントエンド開発
maeda
8
3.4k
エンジニア目線から見たキャッシュレスの話
maeda
0
100
スマホアプリでのStripe決済
maeda
1
910
Other Decks in Programming
See All in Programming
DockerからECSへ 〜 AWSの海に出る前に知っておきたいこと 〜
ota1022
5
1.9k
Ruby×iOSアプリ開発 ~共に歩んだエコシステムの物語~
temoki
0
190
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
140
AWS発のAIエディタKiroを使ってみた
iriikeita
1
150
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
390
Claude Codeで実装以外の開発フロー、どこまで自動化できるか?失敗と成功
ndadayo
4
1.9k
【第4回】関東Kaggler会「Kaggleは執筆に役立つ」
mipypf
0
1k
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
2
1.7k
Claude Codeで挑むOSSコントリビュート
eycjur
0
190
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
230
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
160
Testing Trophyは叫ばない
toms74209200
0
490
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
The Language of Interfaces
destraynor
160
25k
Unsuck your backbone
ammeep
671
58k
KATA
mclloyd
32
14k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Speed Design
sergeychernyshev
32
1.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Pragmatic Product Professional
lauravandoore
36
6.8k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
284
13k
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,)