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
mockmockの多通貨・従量課金決済をStripeで実現しようとしている話
Search
Keita Mohri
September 11, 2018
0
220
mockmockの多通貨・従量課金決済をStripeで実現しようとしている話
JP_Stripes 福岡 Vol.4
Keita Mohri
September 11, 2018
Tweet
Share
More Decks by Keita Mohri
See All by Keita Mohri
Excelを扱うRubyGemまとめ 2022
ktam1219
0
550
モクえもんのお時間です
ktam1219
0
160
在宅ワーク中だけど会社にしかGPSマルチユニットがない?でも大丈夫!そう、mockmockがあればね。
ktam1219
0
380
IoTデバイスの疑似データ送信システムにおける サーバーレスなログ処理機構の試行錯誤
ktam1219
0
540
実写版モクえもん in Explorer ~愛・おぼえていますか~
ktam1219
0
290
エンジニアのおしごと
ktam1219
0
120
mockmockの大量のログをいい感じに捌きたい
ktam1219
0
970
Goで作る大量プロセス管理機構
ktam1219
2
3.3k
わりとゴツいKubernetesハンズオン そのあとに
ktam1219
0
590
Featured
See All Featured
Scaling GitHub
holman
458
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Automating Front-end Workflow
addyosmani
1366
200k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
97
Mobile First: as difficult as doing things right
swwweet
222
9k
What's in a price? How to price your products and services
michaelherold
243
12k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Side Projects
sachag
452
42k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Transcript
ɹɹɹɹɹɹͷଟ௨՟ɾैྔ՝ܾۚࡁΛ 4USJQFͰ࣮ݱͨ͠͠Α͏ͱ͍ͯ͠Δ ໟརܒଠ +1@4USJQFTԬ7PM
ࣗݾհ ໟརܒଠʢ͏Γ͚͍ͨʣ 'VTJD$P -UE ൃҊऀϓϩμΫτΦʔφʔ *P5ܥͷडୗҊ݅
લ৬ ༯ոͱ͔Ͱ༗໊ͳ ήʔϜձࣾ
ɹɹɹɹɹɹͷ͝հ
*P5։ൃΛΠΠײ͡ʹ ਐΊΔ8FCαʔϏε
*P5ͷ
Ϟϊ͕ Thing
Πϯλʔωοτܦ༝Ͱ Thing
αʔόʹσʔλΛૹΓ Server Thing D a t a
ղੳͨ͠Γͯ͠ Server Thing D a t a
Կ͔͢Δ Server Thing D a t a
*P5ͷ ͓ΘΓ
*P5 ։ൃ͠·͢
ςετ͍ͨ͠ Server Thing D a t a
σʔλૹͬͯ΄͍͠ Server Thing D a t a
Ͱ
Ϟϊʹͩͬͯ ߹͋Δ
͑͐ͬɺ ։ൃʹ͔͔Δͷʂʁ
͑͐ͬɺ ϗϯτʹյ͞ͳ͍ͱ Τϥʔσʔλग़ͤͳ͍ͷʂʁ
ෛՙࢼݧ༻ʹ ཉ͍͚͠Ͳʜ ݸສԁʂʁ
ෛՙࢼݧ༻ʹ ༻ҙ͚ͨ͠Ͳʜ ୭͕ૢ࡞͢Δͷ͜Εʂʁ
ςετʹࠔΔ
ͦ͜Ͱ
ࢥ͍Ͳ͓ΓʹͳΔϞϊ Server D a t a
͍ͭͰ ཉ͍͠σʔλΛ ཉ͍͠ྔ͚ͩ ૹͬͯ͘ΕΔʂ
͏Ε͍͠
ɹɹɹɹɹɹͷྉۚମܥ
0O%FNBOE ‣ ΩϟύγςΟɿಉ࣌ʹՔಇͰ͖ΔNPDLͷ ‣ ΩϟύγςΟΛࢦఆͯ͠ɺNPDLΛՔಇͤ͞Δͱɺ Քಇ͚࣌ؒͩඅ༻͕ൃੜ͢Δ
'MBU1MBO ‣ ؒʢ։࢝λΠϛϯάҙʣఆֹͰNPDLΛ Քಇͤ͞Δ͜ͱ͕Ͱ͖Δ ‣ ։࢝λΠϛϯάͰඅ༻͕ൃੜ͢Δ
ແྉ ‣ Ϣʔβʔొ͔ΒؒɺNPDL͕ແྉͰ͍์ ‣ ΫϨδοτΧʔυొͳ͠Ͱ͑Δ
Ϋʔϙϯ ‣ Կ͔͠ΒͷΩϟϯϖʔϯͰग़ͨ͠Γ ‣ Կ͔ͷ͓ྱͱͯͬͨ͠Γ
ͦͷଞ ‣ ΫϨδοτΧʔυ͍ ‣ ࣄલʹΫϨδοτΧʔυΛొͯ͠Β͍ɺ ݄ॳʹલ݄ͷඅ༻Λܾࡁ͢Δ ‣ ܾࡁ௨՟+1:PS64% ༧ఆ ͜Ε͕4USJQFҠߦͷಈػ
#JMMJOHΛࢼͯ͠Έͨ
#JMMJOH
#JMMJOH ‣ ఆظࢧ͍ΛΠΠײ͡ʹॲཧͯ͘͠ΕΔ ݄ఆֹϓϥϯɺैྔ՝ۚͳͲॊೈʹରԠՄೳ ‣ ΫʔϙϯΛѻ͏ػೳ͋Δ ‣ ࢧ͍͕ࣦഊͨ͠ͱ͖ͷಜଅɺΧʔυͷ༗ޮظݶͷ ࣗಈߋ৽ͳͲɺճऩΛ্͛Δػೳ͋ͬͯ͏Ε͍͠
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ 4USJQFʹ1SPEVDU 1MBOΛઃఆ
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ ΫϨδοτΧʔυొʹΑΓ5PLFOΛൃߦ Token
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ 5PLFO͔Β$VTUPNFSΛ࡞ Token Customer
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ 4VCTDSJQUJPO࡞ʢ$VTUPNFSʹ1MBOΛඥ͚ͮʣ Token Customer Subscription Subscription Subscription Item Subscription Item
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ 4VCTDSJQUJPO*UFNʹར༻ྔΛ௨ Token Customer Subscription Subscription Subscription Item Subscription Item 10Hrs 15Hrs
#JMMJOHͷ֓೦ NPDLNPDLͷ߹ Product : cn10 Plan : JPY Plan :
USD Product : cn20 Plan : JPY Plan : USD ɾ ɾ ɾ ఆظతʹར༻ྉʹԠܾͨ͡ࡁ͕࣮ߦ͞ΕΔ Token Customer Subscription Invoice Subscription Subscription Item Subscription Item 10Hrs 15Hrs - cn10 x 10Hrs - cn20 x 15Hrs
͏·͍͚͘ 4USJQFʹٻ·ΘΓͷ໘ͳ͜ͱΛͤΒΕͦ͏ʂ ϢʔβʔͷΧʔυཧ ྉۚମܥσʔλͷཧ ྉۚܭࢉ ܾࡁ࣮ߦ ٻϝʔϧૹ৴ ϢʔβʔͷΧʔυొ ྉۚମܥσʔλͷදࣔ ར༻ྔܭࢉ
ٻ༰දࣔ
Ͱ͕͢ɺ ຯͳ͕ॏͳΓ ར༻ΛΊ·ͨ͠ʜ
ҙͷλΠϛϯάͰܾࡁ͕࣮ߦͰ͖ͳ͍ ‣ ʮఆظʯܾࡁͳͷͰͨΓલͱ͍͑ͦ͏Ͱ͕͢ʜ ‣ ςετ͕एׯΓͮΒ͍ ‣ ࠷ॳͷ͏ͪٻ༰Λ֬ೝ্ͨ͠ͰܾࡁΛ࣮ߦ͍ͨ͠ ؾ࣋ͪͷ͚ͩΕͲ
ར༻͕ͳ͔ͬͨ4VCTDSJQUJPOٻॻʹදࣔ͞ΕΔ ‣ NPDLNPDLͷ߹ɺ4VCTDSJCF͢Δ1MBOݸ 0O%FNBOE 'MBU1MBO֤ݸͣͭ ‣ ΄ͱΜͲͷ߲͕ԁͷົʹ͍ٻॻ͕Ͱ͖ͦ͏ ‣ ରԠ͠Α͏ͱ͢Δͱ݄͝ͱʹར༻͕͋Δ4VCTDSJQUJPOΛ
͚ସ͑ͳ͍ͱ͍͚ͳ͍
Ϋʔϙϯ͕͔ͭ͠ઃఆͰ͖ͳ͍ ‣ Մೳੑͱͯ͠ΫʔϙϯΛෳ࣋ͭ߹͋Δ ‣ ରԠ͠Α͏ͱͨ͠߹ɺ݄͝ͱʹΫʔϙϯར༻ֹΛܭࢉͯ͠ 4USJQFʹઃఆ͢Δඞཁ͕͋Δ
ٻॻͱΫʔϙϯʹରԠͨ͠߹ ϢʔβʔͷΧʔυཧ ྉۚମܥσʔλͷཧ ྉۚܭࢉ ܾࡁ࣮ߦ ٻϝʔϧૹ৴ ϢʔβʔͷΧʔυొ ྉۚମܥσʔλͷཧ ྉۚମܥσʔλͷදࣔ ར༻ྔܭࢉ
ྉۚܭࢉ ٻ༰දࣔ ͋Μ·ΓΠέͯͳ͍ʜ
ݱঢ়ͷண ϢʔβʔͷΧʔυཧ ܾࡁ࣮ߦ ٻϝʔϧૹ৴ ϢʔβʔͷΧʔυొ ྉۚମܥσʔλͷཧ ྉۚମܥσʔλͷදࣔ ར༻ྔܭࢉ ྉۚܭࢉ ٻ༰දࣔ
NPDLNPDLଆͰྉۚΛܭࢉͯ͠ɺී௨ͷܾࡁʜ
ಋೖͯ͠Έͯͷײ
υΩϡϝϯτ ‣ ͔ͬ͠Γඋ͞Ε͍ͯΔˍ͔Γ͍͢
υΩϡϝϯτ ‣ 2JJUBʹৄࡉͳղઆʂ
4%, ‣ ͞·͟·ͳݴޠ͕͋Γॆ࣮͍ͯ͠Δ
ςετϞʔυ ‣ ؾ݉Ͷͳ͘ςετͰ͖Δຊ൪σʔλͱࠞ͟Βͳ͍ͷͰ͍͍͢
ૢ࡞ཤྺ ‣ ͯ͢ΔͷͰ҆৺
ૢ࡞ཤྺ ‣ ͯ͢ΔͷͰ҆৺
ଟ௨՟ܾࡁ ‣ ௨՟Λઃఆ͢Δ͚ͩ
ଟ௨՟ܾࡁ ‣ ຊԁͰޱ࠲ʹೖΕͯ͘ΕΔ
#JMMJOH ‣ ίϯηϓτͱ͍͍ͯαʔϏε ‣ Ͱ͖Δ͜ͱͳΒ͍͍ͨʜ ‣ ٻॻɺΫʔϙϯ͕ղܾͨ͠Βকདྷతʹಋೖ͢Δ͔ ղܾ͠ͳͯ͘ڧߦಥഁ͔
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ IUUQTNPDLNPDLDPNKB