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
CAMPHOR-DAY 2021 - Stripe 概観
Search
asamas
March 27, 2021
Programming
700
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CAMPHOR-DAY 2021 - Stripe 概観
CAMPHOR-DAY2021のスライドです
asamas
March 27, 2021
Other Decks in Programming
See All in Programming
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
410
速習iPhone Duo対応
yuukiw00w
1
710
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
180
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
160
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
360
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
130
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
330
Building an Out-of-Order CPU
latte72
1
790
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
530
一人だけ、Kiroが静止する日
hideg
0
120
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
200
Featured
See All Featured
The agentic SEO stack - context over prompts
schlessera
0
940
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Invisible Side of Design
smashingmag
301
52k
It's Worth the Effort
3n
188
29k
Faster Mobile Websites
deanohume
310
32k
So, you think you're a good person
axbom
PRO
2
2.2k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Speed Design
sergeychernyshev
33
2.1k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
280
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Transcript
Stripe 概観 @asamas
⾃⼰紹介 Twitter︓@asamas95 Github︓@asamas 京都府⽴医科⼤学
Stripe • オンライン決済システム • カード決済など複数の複数の 決済⼿段を代⾏ • カード情報を⾮保持・⾮通過 で処理可能
Stripeのサービス ・ Payment ︓ 普通の決済 ・ Billing ︓ 請求書を発⾏する決済 ・
(Connect ︓ プラットフォームの作成) Stripeには主に3つのサービスがある
Stripe Payment • Stripe Checkout︓stripeの⽤意しているページに遷移して決済 • Charges API︓開発終了 • Payment
Intents API︓現在推奨されているapi Charges Payment Intents 開発状況 開発終了 開発中 セキュリティ SCA⾮対応 SCA対応 対応している ⽀払い⼿段 Source API/Card Payment Method API
Payment Intents API • Payment Intent Objectを 中⼼にAPIが⽣えている • Create
• Update • Confirm • Cancel paymentIntentObject例
Stripe Element/StripeJS • カード情報をサーバーを介さずに直接やりとりするためのフロ ント向けライブラリ • StripeJS︓カード情報をstripeに送信する • Element︓カード情報⼊⼒フォーム •
React対応 Stripe Element 例
Stripe Payment – paymentのステップ1 DMJFOU TFSWFS TUSJQF Client_secretを要求
Stripe Payment – paymentのステップ2 DMJFOU TFSWFS TUSJQF Client_secretを要求 Payment_intentの 作成
Stripe Payment – paymentのステップ3 DMJFOU TFSWFS TUSJQF Client_secretを要求 Payment_intentの 作成
Payment_intent Object
Stripe Payment – paymentのステップ4 DMJFOU TFSWFS TUSJQF Client_secretを要求 Payment_intentの 作成
Payment_intent Object Client_Secret
Stripe Payment – paymentのステップ5 DMJFOU TUSJQF Client_Secret,カード情報
Stripe Billing • 使⽤可能な決済パターン • 1回限りの⽀払い • サブスクリプション • 従量課⾦制
etc… • 請求書(Invoice)ページはstripeが作ってくれる
Stripe Billing – Stripe Dashboard
Stripe Billing - Invoice API • Invoice Objectを 中⼼にAPIが⽣えている •
Create • Retrieve • Update • Delete • Finalize etc.
Stripe Billing – Invoiceのwork flow https://stripe.com/docs/billing/invoices/overview
Stripe Billing - Invoiceページ
Stripe Billing – ⽀払い後
Stripe Webhook
Stripe Webhook
Stripe Webhook
Stripe - Event • Stripeでなにか処理が⾏われる度に Eventがwebhookに⾶ばされる • すべてのeventを処理するのは⼤変 なので、stripe dashboardで必要な
eventだけ取得する Event ⼀例 • invoice.created • invoice.deleted • invoice.finalization_failed • invoice.finalized • invoice.paid • invoice.payment_action_required • invoice.payment_failed • invoice.payment_succeeded • invoice.sent • invoice.upcoming • invoice.updated • invoice.voided
まとめ • Stripe の主なサービスの紹介 • Payment • Billing • (Connect)
• Stripeの処理はwebhookでとってくる • 資料 https://stripe.com/docs https://stripe.com/docs/api https://stripe.com/docs/js