Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Stripe CLI Presentation
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kenta Labur
April 23, 2021
Education
90
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stripe CLI Presentation
「StripeCLI のキホン」
@Stripe Deep Dive Session Vol.5
21.04.22
Kenta Labur
April 23, 2021
Other Decks in Education
See All in Education
SANG PENCIPTA BERBICARA (01ABSG-Q4-2026)
ssmedikasda
0
470
DecisionesEjecutivasCrisis
mariooc
0
430
Antigravityを使ってGeminiAPI(NanobananaPro)と連携して挿絵メーカーを作った
yoshimura_datam
0
260
Science Tokyo University for International Research Excellence scheme_April 2026
sciencetokyo
PRO
0
520
響け!ユーフォニアムと考える「決め方」/Thinking About Decision-Making with Sound! Euphonium
3l4l5
1
200
Dronegeografía innovación didáctica y fotogrametría 3D para la enseñanza de la geografía local y la ciudadaniía activa
juanmartin2026
0
40k
Human Perception and Cognition - Lecture 4 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.7k
観察、仮説、実行、検証、計画、提案を一年で3000回トレーニングする方法/3000 Thinking Loops in 365 Days
moriyuya
5
1.5k
1人 × AI、1か月でここまで作れる ー 数年前の外注換算3.8〜7.4億円・241〜379人月分の作業を、AI費用 約10万円・31日で
frievea
0
580
セキュリティ担当がいない中小医療機関を院外のRISSはどう支えるべきか / How External RISS Can Help Small Medical Institutions
eller86
1
230
人間のために、人間と共に働く時代の終わりの始まり
frievea
0
230
Sanapilvet opetuksessa
matleenalaakso
1
36k
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Claude Code のすすめ
schroneko
67
230k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Abbi's Birthday
coloredviolet
4
10k
Side Projects
sachag
456
43k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
The Cost Of JavaScript in 2023
addyosmani
55
10k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Practical Orchestrator
shlominoach
192
12k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Speed Design
sergeychernyshev
33
2.2k
Transcript
Stripe CLI のキホン
2 Software Engineer, Stripe ラボール健太
Agenda Stripe CLI 開発の背景 基本機能 Live Demo 3 1 2
3
4 Seller Stripe の基本導入例 支払い /charges Visa JCB Mastercard ...
• /charges API を利用した決済実行フロー • 従来は決済の実行結果が success/fail の2択 ◦ Success:フルフィルメントを実行 ◦ Fail:エラーを表示
決済の複雑化 5 テクノロジー 3D セキュア VISA セキュア 決済文化 モバイル決済 地域特有の決済方法
規制 PSD2/SCA(本人認証) GDPR(EU データ保護規則)
6 6 事例:3D セキュア
7 • 決済フローに本人確認ステップ、他サイトへのリダイレクトが入る • 時差が生じるため同期処理のみでは対応しにくい 7 決済に非同期処理が発生する
• Stripe 側が決済のイベントを通知 • サービス側で受信、イベントデータを 処理して決済の状況を追う ◦ succeeded:フルフィルメン ト ◦
payment_failed:エラー 8 Webhooks
9 • Stripe が直接叩ける Webhook エンドポイント(公開URL)が必要 • Webhook エンドポイントと開発環境をつなげる作業が必要 ◦
Tunneling ソフト(ngrok 等)が必要になる • テスト用に webhook イベントを送信したい • 全体的に Developer Experience が微妙 9 Webhooks 開発の難点
10 • 当初は webhook 開発のニーズに応えるために開発 • Webhook エンドポイント、tunneling は Stripe
CLI に丸投げできる • Webhook 開発周りのことは大体できる ◦ Webhook event 送受信 ◦ Stripe 側の API リクエストを 監視 • Stripe API にリクエストを送る 10 Stripe CLI の誕生
Agenda Stripe CLI 開発の背景 基本機能 Live Demo 11 1 3
2
12 • Webhook event の受信、転送 • テストWebhook event の送信 •
log tail でリクエストを監視 • Stripe リソースコマンド (RPC-like) • Stripe API に対しリクエストを実行 (curl-like) 12 Stripe CLI機能一覧
13 • Homebrew (MacOS/Linux/WSL), Scoop (Windows) • .deb/.rpm、各種 OS 用バイナリ
• Docker イメージ • Open Source 13 Stripe CLIのインストール
14 • Stripe アカウントの紐付けが必要 ◦ ブラウザ上でログイン、API キーを付与 ◦ Interactive:CLI 上で
API キーやデバイス名を管理 ◦ Headless:CLI に渡すオプションや環境変数で API キーを定義 14 Stripe CLI Configuration
Agenda Stripe CLI 開発の背景 基本機能 Live Demo 15 3 2
1
Thank you!