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
530
モクえもんのお時間です
ktam1219
0
160
在宅ワーク中だけど会社にしかGPSマルチユニットがない?でも大丈夫!そう、mockmockがあればね。
ktam1219
0
370
IoTデバイスの疑似データ送信システムにおける サーバーレスなログ処理機構の試行錯誤
ktam1219
0
530
実写版モクえもん in Explorer ~愛・おぼえていますか~
ktam1219
0
280
エンジニアのおしごと
ktam1219
0
110
mockmockの大量のログをいい感じに捌きたい
ktam1219
0
950
Goで作る大量プロセス管理機構
ktam1219
2
3.2k
わりとゴツいKubernetesハンズオン そのあとに
ktam1219
0
580
Featured
See All Featured
Practical Orchestrator
shlominoach
186
10k
The Power of CSS Pseudo Elements
geoffreycrofte
72
5.3k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.6k
Git: the NoSQL Database
bkeepers
PRO
425
64k
Testing 201, or: Great Expectations
jmmastey
38
7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Six Lessons from altMBA
skipperchong
26
3.5k
Into the Great Unknown - MozCon
thekraken
31
1.5k
Building Your Own Lightsaber
phodgson
102
6k
Optimizing for Happiness
mojombo
376
69k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
680
Building Adaptive Systems
keathley
38
2.2k
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