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を利用した決済機能をテストする
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
gorou_178
March 21, 2019
Programming
1
5.7k
Stripeを利用した決済機能をテストする
決済機能のテストはとても大事です。Stripeのテストモードはとても簡単につかえるように設計されています。そのStripeテストモードについての紹介と、APIのテストについてお話します。
gorou_178
March 21, 2019
Tweet
Share
More Decks by gorou_178
See All by gorou_178
OAuth2 / OIDC / FAPI の理解をちょっと深めてみる
gorou_178
0
17
Spring Bootで作成したAPIテストのコスパを高めよう!
gorou_178
1
1.5k
「エンジニアのための ドキュメントライティング」書籍のすすめ / phpconfuk 2023
gorou_178
2
1.1k
EventBridgeの運用について
gorou_178
0
250
Stripe Appsと自サービスの連携作法
gorou_178
0
250
Laravelのsession設定を変えて 劇的にパフォーマンスを改善した話
gorou_178
0
2.2k
Stripeとアプリケーションの関係を可視化してみた
gorou_178
0
940
Stripeでの増税対応
gorou_178
0
870
Stripe+PHPでセキュアで安全な決済機能を作る
gorou_178
0
1.9k
Other Decks in Programming
See All in Programming
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
AI巻き込み型コードレビューのススメ
nealle
1
210
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
280
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
620
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
160
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
2026年 エンジニアリング自己学習法
yumechi
0
130
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
92
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
96
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
WENDY [Excerpt]
tessaabrams
9
36k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
Designing for Performance
lara
610
70k
Crafting Experiences
bethany
1
48
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Transcript
StripeΛར༻ͨ͠ ܾࡁػೳΛςετ͢Δ JP_Stripes Fukuoka ݀Ҫ ྯ
ࣗݾհ • ݀Ҫ ྯ Twitter: @gorou_178 • גࣜձࣾΠϊϕʔλʔɾδϟύϯ • AWS
/ WordPress / PHP / Laravel / vue.js • ϑΝΠϧసૹαʔϏε tenpu • JP_Stripes Fukuoka ӡӦϝϯόʔ • ίʔώʔ/B’z/ϥϯφʔ
JP_Stripes Fukuoka ׆ಈ༰ʮJP_Stripes FukuokaʯͰݕࡧ
ࠓ͢͜ͱ
Stripeͷςετ
ܾࡁαʔϏεͷςετେมͦ͏…
ͦΜͳࣄ͋Γ·ͤΜʂ
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
1. ςετϞʔυͷΓସ͑ • ʮςετσʔλΛදࣔʯΛ
1. ςετϞʔυͷΓସ͑ • ʮςετσʔλΛදࣔʯΛ • ONʹΓସ͑Δ͚ͩ • ※දࣔσʔλ͕ΓସΘΔ͚ͩͰɺ ຊ൪ڥ௨ৗ௨Γಈ࡞͍ͯ͠Δ
APIΩʔςετ༻͕ൃߦ͞ΕΔ
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ΫϨδοτΧʔυͷςετ 3. ҙ
2. ΫϨδοτΧʔυͷςετ • Checkoutͱ͍͏ඪ४ͷΧʔυ ೖྗϑΥʔϜ • ςετ༻APIΩʔΛ͏ͱTest ModeʹͳΔʢӈ্ͷදࣔʣ
2. ΫϨδοτΧʔυͷςετ • ͏͔ͬΓຊͷΧʔυใΛೖΕ ͯΤϥʔʹͳΔͷͰେৎʂ
2. ΫϨδοτΧʔυͷςετ • ֤ΫϨδοτΧʔυձࣾͷςετ ΧʔυΛܾ͑ࡁςετ͕Ͱ͖ Δ
ಛఆͷΤϥʔ͕ൃੜ͢ΔΧʔυ https://stripe.com/docs/testing#cards-responses
ຊ൪ڥͰςετΧʔυ ͑·ͤΜʢ೦ͷҝʣ
Stripeͷςετ 1. ςετϞʔυͷΓସ͑ 2. ςετΧʔυ͔͑͠ͳ͍҆৺ײ 3. ҙ
4. ҙ • ʢྉۚϓϥϯʣσʔλຊ൪ͱςετϞʔυͰผʑཧ͞ ΕΔ • Λ࡞ΓΕͳ͍Α͏ʹʢࢲΒ͔͠·ͨ͠…ʣ
4. ҙ • ఆظ՝ۚͷαΠΫϧ͕ϦΞϧͳ࣌ؒͰಈ͘ • ఆظ՝ۚ1ϲ݄ͷ߹ɺ࣮ࡍʹ1ϲ݄ͭඞཁ͕͋Δ • ࠶՝ۚͷςετ1ϲ݄ͪ • ՝ۚ෦ͷϞοΫԽΛ͓͢͢Ί͠·͢
stripe/stripe-mock Stripe APIͷϞοΫڥ͕࡞Ͱ͖Δ https://github.com/stripe/stripe-mock
nijikokun/stripe-mock-webhook Stripe webhook ͷϨεϙϯεΛฦͯ͘͠ΕΔ https://github.com/nijikokun/stripe-mock-webhooks
·ͱΊ • StripeͷςετϞʔυͱ͍͍ͯ͢ • มͳ͍ํͰ͖ͳ͍ͷͰ҆৺ͯ͑͠Δ • େͳ՝ۚॲཧΛStripeͰָʹςετ͠·͠ΐ͏
͋Γ͕ͱ͏͍͟͝·ͨ͠