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
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
0
130
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
510
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
ジョジョの世界をXRで再現する
mofurune
0
170
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
430
Next.js: The final boss of Web Performance
guaca
0
280
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Agile that works and the tools we love
rasmusluckow
331
22k
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