$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Stripe CLIの活用
Search
MaedaKeisuke
January 27, 2020
Programming
0
59
Stripe CLIの活用
MaedaKeisuke
January 27, 2020
Tweet
Share
More Decks by MaedaKeisuke
See All by MaedaKeisuke
AWSを用いたフロントエンド開発
maeda
8
3.4k
エンジニア目線から見たキャッシュレスの話
maeda
0
110
スマホアプリでのStripe決済
maeda
1
930
Other Decks in Programming
See All in Programming
ソフトウェア設計の課題・原則・実践技法
masuda220
PRO
24
21k
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.3k
目的で駆動する、AI時代のアーキテクチャ設計 / purpose-driven-architecture
minodriven
11
3.9k
分散DBって何者なんだ... Spannerから学ぶRDBとの違い
iwashi623
0
170
Querying Design System デザインシステムの意思決定を支える構造検索
ikumatadokoro
1
1.2k
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 1
philipschwarz
PRO
0
120
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
380
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
1
430
AIと協働し、イベントソーシングとアクターモデルで作る後悔しないアーキテクチャ Regret-Free Architecture with AI, Event Sourcing, and Actors
tomohisa
5
18k
Why Kotlin? 電子カルテを Kotlin で開発する理由 / Why Kotlin? at Henry
agatan
2
6.1k
Reactive Thinking with Signals and the new Resource API
manfredsteyer
PRO
0
160
WebRTC と Rust と8K 60fps
tnoho
2
1.9k
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
GraphQLとの向き合い方2022年版
quramy
49
14k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Building an army of robots
kneath
306
46k
For a Future-Friendly Web
brad_frost
180
10k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
The Cult of Friendly URLs
andyhume
79
6.7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
RailsConf 2023
tenderlove
30
1.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.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,)