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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
MaedaKeisuke
January 27, 2020
Programming
69
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stripe CLIの活用
MaedaKeisuke
January 27, 2020
More Decks by MaedaKeisuke
See All by MaedaKeisuke
AWSを用いたフロントエンド開発
maeda
8
3.4k
エンジニア目線から見たキャッシュレスの話
maeda
0
110
スマホアプリでのStripe決済
maeda
1
970
Other Decks in Programming
See All in Programming
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
340
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
180
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.4k
Foundry Localでエージェント開発
seosoft
0
110
業務時間外もAIに働いてもらう話
colorful12
3
9.8k
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.9k
typoなんかねぇよ
raspython3
0
650
不幸な GC
chencmd
0
870
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
160
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
7
2.3k
FastAPI の並行処理モデルを完全に理解する
hoto17296
9
3.6k
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
Featured
See All Featured
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Navigating Team Friction
lara
192
16k
The Spectacular Lies of Maps
axbom
PRO
1
970
30 Presentation Tips
portentint
PRO
1
380
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Tell your own story through comics
letsgokoyo
1
1.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
640
For a Future-Friendly Web
brad_frost
183
10k
How to build a perfect <img>
jonoalderson
1
5.9k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
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,)