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
560
モクえもんのお時間です
ktam1219
0
170
在宅ワーク中だけど会社にしかGPSマルチユニットがない?でも大丈夫!そう、mockmockがあればね。
ktam1219
0
390
IoTデバイスの疑似データ送信システムにおける サーバーレスなログ処理機構の試行錯誤
ktam1219
0
550
実写版モクえもん in Explorer ~愛・おぼえていますか~
ktam1219
0
300
エンジニアのおしごと
ktam1219
0
130
mockmockの大量のログをいい感じに捌きたい
ktam1219
0
1k
Goで作る大量プロセス管理機構
ktam1219
2
3.4k
わりとゴツいKubernetesハンズオン そのあとに
ktam1219
0
610
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
Bootstrapping a Software Product
garrettdimon
PRO
306
110k
Rails Girls Zürich Keynote
gr2m
94
13k
Into the Great Unknown - MozCon
thekraken
35
1.6k
Visualization
eitanlees
146
15k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Building Your Own Lightsaber
phodgson
104
6.2k
Become a Pro
speakerdeck
PRO
26
5.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
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