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を利用した決済機能をテストする
Search
gorou_178
March 21, 2019
Programming
5.9k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stripeを利用した決済機能をテストする
決済機能のテストはとても大事です。Stripeのテストモードはとても簡単につかえるように設計されています。そのStripeテストモードについての紹介と、APIのテストについてお話します。
gorou_178
March 21, 2019
More Decks by gorou_178
See All by gorou_178
OAuth2 / OIDC / FAPI の理解をちょっと深めてみる
gorou_178
0
52
Spring Bootで作成したAPIテストのコスパを高めよう!
gorou_178
1
1.6k
「エンジニアのための ドキュメントライティング」書籍のすすめ / phpconfuk 2023
gorou_178
2
1.2k
EventBridgeの運用について
gorou_178
0
280
Stripe Appsと自サービスの連携作法
gorou_178
0
280
Laravelのsession設定を変えて 劇的にパフォーマンスを改善した話
gorou_178
0
2.3k
Stripeとアプリケーションの関係を可視化してみた
gorou_178
0
1k
Stripeでの増税対応
gorou_178
0
940
Stripe+PHPでセキュアで安全な決済機能を作る
gorou_178
0
2k
Other Decks in Programming
See All in Programming
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
170
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.3k
Heart of Swift Concurrency
koher
0
760
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
210
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
6
1.9k
Java 27新機能 / Java 27 new features
kishida
2
140
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
120
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
280
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
140
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
0
280
Family mrubyの進捗
kishima
1
120
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
490
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
520
Design in an AI World
tapps
1
320
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
720
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
910
Building an army of robots
kneath
307
46k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
280
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
67
58k
Site-Speed That Sticks
csswizardry
13
1.5k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
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Ͱָʹςετ͠·͠ΐ͏
͋Γ͕ͱ͏͍͟͝·ͨ͠