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
Mackerel and Stripe / Qiita x Stripe Meetup
Search
astj
PRO
April 12, 2019
Technology
0
5.3k
Mackerel and Stripe / Qiita x Stripe Meetup
https://connpass.com/event/123900/
astj
PRO
April 12, 2019
Tweet
Share
More Decks by astj
See All by astj
ISUCON14公式反省会LT: 社内ISUCONの話
astj
PRO
0
39
Mackerel の時系列データベースにおける Redis Cluster の利用と Amazon ElastiCache への移行について / AWS Purpose-Built Databases Week
astj
PRO
3
5.6k
Mackerel のコンテナ監視の近況 / Mackerel Meetup #13
astj
PRO
1
2.2k
Observability: Mackerel による観測と Mackerel の観測 / NoOps Meetup Tokyo #8
astj
PRO
2
2k
サービス開発と健全なプロダクトメンテナンスを開発チームで持続的に取り組む / Developers Boost KANSAI
astj
PRO
1
1.3k
Mackerel をオンプレミスから AWS に移してからの1年半を振り返る / Hatena Engineer Seminar #11
astj
PRO
0
1k
AWS で実現した Mackerel 時系列データ1分粒度長期保存の裏側 / Mackerel Meetup #11 Tokyo
astj
PRO
6
29k
稼働中の Web サービスの perl のバージョンを上げていく
astj
PRO
0
7.3k
Perl 6 で Web Application Framework をつくる
astj
PRO
0
4.4k
Other Decks in Technology
See All in Technology
シフトライトなテスト活動を適切に行うことで、無理な開発をせず、過剰にテストせず、顧客をビックリさせないプロダクトを作り上げているお話 #RSGT2025 / Shift Right
nihonbuson
3
2.2k
今年一年で頑張ること / What I will do my best this year
pauli
1
220
【NGK2025S】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
0
240
dbtを中心にして組織のアジリティとガバナンスのトレードオンを考えてみた
gappy50
0
280
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
590
Godot Engineについて調べてみた
unsoluble_sugar
0
410
RubyでKubernetesプログラミング
sat
PRO
4
160
0→1事業こそPMは営業すべし / pmconf #落選お披露目 / PM should do sales in zero to one
roki_n_
PRO
1
1.5k
Git scrapingで始める継続的なデータ追跡 / Git Scraping
ohbarye
5
500
[IBM TechXchange Dojo]Watson Discoveryとwatsonx.aiでRAGを実現!座学①
siyuanzh09
0
110
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
7
470
商品レコメンドでのexplicit negative feedbackの活用
alpicola
2
370
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
870
We Have a Design System, Now What?
morganepeng
51
7.3k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Done Done
chrislema
182
16k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
360
Transcript
Mackerel and Stripe 2019/04/12 Qiita x Stripe Meetup Asato WAKISAKA
(Hatena)
Asato WAKISAKA (GitHub: @astj) ͯͳ ΞϓϦέʔγϣϯΤϯδχΞ Mackerel ։ൃνʔϜ (2016/08~) Mackerel
ςοΫϦʔυ (2018/05~)
Mackerel
None
None
None
None
• 2014ϦϦʔεͷʮαʔόʔࢹαʔϏεʯ • ʑΞΫςΟϒʹ։ൃத • ܧଓతͳ৽ػೳϦϦʔε • ແྉͰར༻Մೳ • ϑϧػೳʹ༗ྉϓϥϯͷܖ͕ඞཁ
None
Mackerel ͱܾࡁ
• ຖ݄ͷར༻࣮ʹԠͨ͡ैྔ՝ۚ • ར༻͍ͯ͠ΔϗετʢͳͲʣͷҠಈฏۉ • ελϯμʔυϗετ1/1݄͋ͨΓ1800ԁ • ܾࡁखஈ: جຊతʹΫϨδοτΧʔυ •
=> ΫϨδοτΧʔυܾࡁʹ Stripe
Stripe Mackerel Stripe.js v2 Mackerel JS Token Customer Token CardNumber,
etc Token
3/1 4/1 ݄͝ͱͷҠಈฏۉ
Stripe Payments Mackerel Charge.create( amount: 2*1800, customer: "XXX" ) ݄ॳόον
• ϘϦϡʔϜσΟεΧϯτͳͲಛผ݅͋Γ • ٻॻ͍͋Γ • ࠓΫϨδοτΧʔυͱผޱͰूܭ
Mackerel ͱܾࡁαʔϏε
• ݱࡏΫϨδοτΧʔυܾࡁ Stripe ܦ༝ • ࣮ Stripe ͕3ࣾ (2019/02~)
• αʔϏεϩʔϯν࣌ • ಛʹUSDܾࡁͰ Stripe બࢶʹ • JPYܾࡁͷΈͱͷஅ: WebPay Λબ
• (2014: Stripe ͷຊਐग़લ) 2014
• WebPay αʔϏεऴྃ • ಉ͡ࠒ Stripe ຊ্ • JCB ܾࡁ͕ඞཁ:
PayJp Λબ • 2018࣌Ͱ10%͕ JCB 2016~2017
• Stripe JCB ରԠʂʂʂʂʂ • ຬΛ࣋ͯ͠ Stripe Ҡߦ 2018~19
ܾࡁαʔϏεΛҠߦ͢Δ
• See Stripe docs ! • https://stripe.com/docs/ security/data-migrations
• ৽αʔϏεͰͷܾࡁϩδοΫ࣮ • ސ٬σʔλͷҠ • ܾࡁઌͷΓ͑ • ϨϙʔςΟϯάͷ࠶ߏங
• ࠔΔ͜ͱͦΜͳʹͳ͔ͬͨ • ϓϦϛςΟϒͳػೳͰ࣮ݱ͍ͯͨ͠ • ෳͷܾࡁαʔϏεΛಉ࣌ʹѻ͏͜ͱ͕ Մೳͳઃܭʹͳ͍ͬͯͨ ΤϯυϢʔβʔ͚ͷػೳҠߦ
• (چސ٬ id) => (৽ސ٬ id) ͷϚοϐϯά͕ඞཁ • αʔϏεؒͰσʔλҠߦ =>
ϚοϐϯάΛड͚औΔ • ࣄۀऀؒͷεέδϡʔϧௐ͕ඞཁɹ • ҠߦޙܾࡁͰ͖ͳ͘ͳͬͨͷ1%ఔ ސ٬σʔλͷσʔλҠߦ
৽نސ٬ 1BZ+Q طଘސ٬ 1BZ+Q ܾࡁ 1BZ+Q
৽نސ٬ 4USJQF طଘސ٬ 1BZ+Q ܾࡁ 4USJQF1BZ+Q
৽نސ٬ 4USJQF طଘސ٬ NJHSBUJPO ܾࡁ QFOEJOH
৽نސ٬ 4USJQF طଘސ٬ 4USJQF ܾࡁ 4USJQF
• ച্ɺೖۚͷαΠΫϧ͕มԽ͢Δ • ΧʔυϒϥϯυʹΑͬͯҟͳΔʂ • όοΫΦϑΟεͱௐɺ࣮ όοΫΦϑΟεͱͷ࿈ܞ
• Ҡߦཧͷػͱଊ͑Δ • Ϩϙʔτ༰ɾ࣌ظΛ࠶ઃܭ͢Δ
• ʮച্ΛకΊΔλΠϛϯάͰച্ͷ༁͕Γ͍ͨʂʯ • => Stripe ଆͷܾࡁҰཡ • ʮͦͷച্͕͍ͭೖۚ͞ΕΔ༧ఆͳͷ͔ʯΛؚΊΔ • ʮೖۚͷλΠϛϯάͰͦͷೖۚͷ༁͕Γ͍ͨʂʯ
• => Stripe ଆͷೖۚ༁ ʮ͍ͭɺͲͷࣈ͕ඞཁʁʯ
݄ച্"""ԁ ݄ೖۚ༧ఆQQQԁ ݄ೖۚ༧ఆRRRԁ ݄ച্###ԁ ݄ೖۚ༧ఆSSSԁ ݄ೖۚ༧ఆTTTԁ ݄ೖۚ:::ԁ ݄ച্RRRԁ ݄ച্SSSԁ ݄ೖۚ999ԁ
݄ച্PPPԁ ݄ച্QQQԁ
• Ϛελσʔλ Stripe ͷ API • ͳΜͰऔΕΔʂ • ඞཁͳՃใܾࡁ࣌ͰϝλσʔλʹؚΊΔ •
ʮϗετʯʮ৫໊ʯetc • API ܦ༝ͰϨϙʔτΛ࡞ • ޙॲཧΛՃ͔͑ͯΒόοΫΦϑΟεʹఏग़
Ҡߦ͠·ͨ͠
Stripe Mackerel Stripe.js v2 Mackerel JS CardNumber, etc Token Token
Token Customer ࠶ܝ
Stripe Payments Mackerel Customer.charge( amount: 2*1800, customer: "XXX" ) ݄ॳόον
࠶ܝ
• ࠓͷͱ͜ΖStripe ΛඇৗʹϓϦϛςΟϒʹ͍ͬͯΔ • Stripe ར༻ͱ͍͏ελʔτϥΠϯʹ • ͳΔͦ͘ͷ··Ҡߦ͢Δ͜ͱΛ༏ઌ • ΑΓϦονͳιϦϡʔγϣϯʹڵຯ͕͋Δʂʂ
• Elements / Billing • ࣮ࡍ Elements ͷҠߦΛ·͞ʹ࣮ࢪத
• ܧଓతʹαʔϏεશମΛվળ͍ͯ͘͠ • ܾࡁػೳ"Ҭ" ʹ͠ͳ͍ • ϢʔβʔɺϏδωεɺόοΫΦϑΟε SaaS ఏڙऀͱͯ͠
• ๛ͳػೳɾվળͷԸܙΛड͚͍ͯ͘ • ࠓޙͷ·͢·͢ͷύϫʔΞοϓʹظ • ࠷ۙٻॻʹ͍ͯ͠·͢ SaaS ར༻ऀͱͯ͠
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠