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 API について
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
gorou_178
October 21, 2016
Programming
460
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stripe API について
gorou_178
October 21, 2016
More Decks by gorou_178
See All by gorou_178
OAuth2 / OIDC / FAPI の理解をちょっと深めてみる
gorou_178
0
56
Spring Bootで作成したAPIテストのコスパを高めよう!
gorou_178
1
1.7k
「エンジニアのための ドキュメントライティング」書籍のすすめ / phpconfuk 2023
gorou_178
2
1.2k
EventBridgeの運用について
gorou_178
0
290
Stripe Appsと自サービスの連携作法
gorou_178
0
290
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
速習iPhone Duo対応
yuukiw00w
2
970
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
530
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
590
Simple Storage Service(S3) is not simple
iwatsukayura
0
240
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
190
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
690
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
170
残高管理から台帳サービスへの進化
artoy
0
180
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
650
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
220
sbt 2.0: takeoff
eed3si9n
0
110
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
540
Prompt Engineering for Job Search
mfonobong
0
500
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
400
The SEO identity crisis: Don't let AI make you average
varn
0
580
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
510
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Abbi's Birthday
coloredviolet
4
10k
A Modern Web Designer's Workflow
chriscoyier
699
190k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Ethics towards AI in product and experience design
skipperchong
2
420
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
Transcript
Stripe API ʹ͍ͭͯ גࣜձࣾ Πϊϕʔλʔɾδϟύϯ ݀Ҫ ྯ 2016.10.20
ࣗݾհ • גࣜձࣾΠϊϕʔλʔɾδϟύϯ • WebΤϯδχΞ • Twitter @gorou_178 • ϑΝΠϧసૹαʔϏεʮtenpuʯ
• WordPressͰαΠτߏங • AWSΛར༻ͨ͠αʔόߏஙɺอक
Stripe
10݄4 ຊͰਖ਼ࣜϩʔϯν
None
None
Stripe •ϚΠΫϩϖΠϝϯτܾࡁ •ରԠ௨՟ 130௨՟Ҏ্ •औҾֹʹରͯ͠3.6%͕खྉ •ੈքશମͷސ٬10ສࣾΛ͑Δ •ੈք26ϱࠃͰϩʔϯν
Stripe •Discover •JCB •Diners Club •Visa •Master Card •American Express
Stripe •ࢧ͍ํ๏ •ΫϨδοτΧʔυ •ϏοτίΠϯ •Alipay •ACHσϏοτ
Stripe •༻ڥར༻ਃඞཁ߲ͷೖྗ͚ͩͰྃ(Β͍͠) •WebPayͩͱ1िؒɺશͯͷΫϨδοτΧʔυར༻·Ͱ 1ϲ݄͔͔Δ •ͱΓ͙͋͑ͣ͑͢ΔͬΆ͍
StripeͬͯΔํʁ
WebPayͩΑͬͯํʁ
ͦͷଞͬͯΔํʁ
Stripe Checkout •CheckoutϘλϯΛαΠτ ʹઃஔ͢Δ͚ͩ •scriptλάΛషΔ͚ͩ
Stripe Checkout
Stripe API Libraries •Ruby •Python •PHP •Java •Node.js •Go •iOS
•Android
stripe-php •stripe/stripe-php •https://github.com/stripe/stripe-php
Stripe API •Customer: ސ٬ใ •Card: ΫϨδοτΧʔυใɻސ٬ʹରͯ͠ෳ࣋ͯΔ •Charge: ࢧ͍ɻސ٬ʹඥ͚ͭͯ̍ճݶΓͷ՝͕ۚͰ͖ Δ
Customer
Card •Χʔυใͷొ
Card •ΧʔυใΛCustomerʹඥ͚
Customer + Card •CheckoutϘλϯར༻ͨ͠߹ɺstripeToken͕post͞ΕΔ •tokenͰొ͢ΔͱCustomerͱCardΛҰॹʹొ͞ΕΔ
Stripe API •Plan: ఆظ՝ۚͷྉۚϓϥϯ •Subscription: ఆظ՝ۚɻސ٬ʹඥ͘
Plan •ఆظ՝ۚͷྉۚϓϥϯΛ࡞
Subscription •ఆظ՝ۚΛ࡞ •customerͱplanΛࢦఆ
webhook •webhook͑·͢
webhook •request bodyʹjsonͰࢦఆURLʹϦΫΤετ͕͋Δ •Event APIͰΠϕϯτID͕࣮ࡏ͢Δ͔֬ೝ͢Δ͜ͱ(ηΩϡϦςΟରࡦ) •IPΞυϨεϦετެ։͞Εͯ·͢ •https://stripe.com/docs/ips
ͦͷଞศརͦ͏ͳػೳ •Coupon: Ϋʔϙϯػೳ •ׂҾ or ׂҾֹ •ظؒ: ̍ճͷΈɺࢦఆ·Ͱɺͣͬͱ •CustomerSubscriptionʹΫʔϙϯίʔυΛࢦఆ
ͦͷଞศརͦ͏ͳػೳ •ఆظ՝ۚͷ࠶՝ۚͷઃఆͰ͖Δ
ͦͷଞศརͦ͏ͳػೳ •Χʔυใʹॅॴ͕ొͰ͖Δ •zipcodeͰෆਖ਼νΣοΫͱ͔ͯ͠ΔΒ͍͠ •customerʹҙͷmetadataઃఆͰ͖Δ •Product(ใ)ͷཧͰ͖Δ •ࡏݿɺαΠζɺͷը૾
ͦͷଞศརͦ͏ͳػೳ •receipts(ྖऩॻ)ͷૹ৴Ͱ͖Δ
·ͱΊ •StripeͰԁ͕͑ΔΑ͏ʹͳͬͨΑ •༻ڥ৹ࠪͪͳ͠Ͱ͑ΔΑ •StripeͰཧ·ͰͰ͖ͪΌ͏ •ʮԁܾࡁ͕Ͱ͖ͳ͔ͬͨͷͰʯWebPayΛͬͯΔ͚ͲɺҠ ߦΛܭըத
࣭
͋Γ͕ͱ͏͍͟͝·ͨ͠