Slide 1

Slide 1 text

Mackerel and Stripe 2019/04/12 Qiita x Stripe Meetup Asato WAKISAKA (Hatena)

Slide 2

Slide 2 text

Asato WAKISAKA (GitHub: @astj) ͸ͯͳ ΞϓϦέʔγϣϯΤϯδχΞ Mackerel ։ൃνʔϜ (2016/08~) Mackerel ςοΫϦʔυ (2018/05~)

Slide 3

Slide 3 text

Mackerel

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

• 2014೥ϦϦʔεͷʮαʔόʔ؂ࢹαʔϏεʯ • ೔ʑΞΫςΟϒʹ։ൃத • ܧଓతͳ৽ػೳϦϦʔε • ແྉͰ΋ར༻Մೳ • ϑϧػೳʹ͸༗ྉϓϥϯͷܖ໿͕ඞཁ

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Mackerel ͱܾࡁ

Slide 11

Slide 11 text

• ຖ݄ͷར༻࣮੷ʹԠͨ͡ैྔ՝ۚ • ར༻͍ͯ͠Δϗετ୆਺ʢͳͲʣͷҠಈฏۉ • ελϯμʔυϗετ1୆/1݄͋ͨΓ1800ԁ • ܾࡁखஈ: جຊతʹΫϨδοτΧʔυ • => ΫϨδοτΧʔυܾࡁʹ Stripe

Slide 12

Slide 12 text

Stripe Mackerel Stripe.js v2 Mackerel JS Token Customer Token CardNumber, etc Token

Slide 13

Slide 13 text

3/1 4/1 ݄͝ͱͷ୆਺Ҡಈฏۉ

Slide 14

Slide 14 text

Stripe Payments Mackerel Charge.create( amount: 2*1800, customer: "XXX" ) ݄ॳόον

Slide 15

Slide 15 text

• ϘϦϡʔϜσΟεΧ΢ϯτͳͲಛผ৚݅͋Γ • ੥ٻॻ෷͍͋Γ • ࠓ͸ΫϨδοτΧʔυͱ͸ผޱͰूܭ

Slide 16

Slide 16 text

Mackerel ͱܾࡁαʔϏε

Slide 17

Slide 17 text

• ݱࡏ͸ΫϨδοτΧʔυܾࡁ͸ Stripe ܦ༝ • ࣮͸ Stripe ͕3ࣾ໨ (2019/02~)

Slide 18

Slide 18 text

• αʔϏεϩʔϯν࣌఺ • ಛʹUSDܾࡁͰ Stripe ΋બ୒ࢶʹ • JPYܾࡁͷΈͱͷ൑அ: WebPay Λબ୒ • (2014: Stripe ͷ೔ຊਐग़લ) 2014

Slide 19

Slide 19 text

• WebPay αʔϏεऴྃ • ಉ͡ࠒ Stripe ೔ຊ্཮ • JCB ܾࡁ͕ඞཁ: PayJp Λબ୒ • 2018೥࣌఺Ͱ໿10%͕ JCB 2016~2017

Slide 20

Slide 20 text

• Stripe JCB ରԠʂʂʂʂʂ • ຬΛ࣋ͯ͠ Stripe ΁Ҡߦ 2018~19

Slide 21

Slide 21 text

ܾࡁαʔϏεΛҠߦ͢Δ

Slide 22

Slide 22 text

• See Stripe docs ! • https://stripe.com/docs/ security/data-migrations

Slide 23

Slide 23 text

• ৽αʔϏεͰͷܾࡁϩδοΫ࣮૷ • ސ٬σʔλͷҠ؅ • ܾࡁઌͷ੾Γ׵͑ • ϨϙʔςΟϯάͷ࠶ߏங

Slide 24

Slide 24 text

• ࠔΔ͜ͱ͸ͦΜͳʹͳ͔ͬͨ • ϓϦϛςΟϒͳػೳͰ࣮ݱ͍ͯͨ͠ • ෳ਺ͷܾࡁαʔϏεΛಉ࣌ʹѻ͏͜ͱ͕ Մೳͳઃܭʹͳ͍ͬͯͨ ΤϯυϢʔβʔ޲͚ͷػೳҠߦ

Slide 25

Slide 25 text

• (چސ٬ id) => (৽ސ٬ id) ͷϚοϐϯά͕ඞཁ • αʔϏεؒͰσʔλҠߦ => ϚοϐϯάΛड͚औΔ • ࣄۀऀؒͷεέδϡʔϧௐ੔͕ඞཁɹ • ҠߦޙܾࡁͰ͖ͳ͘ͳͬͨͷ͸1%ఔ౓ ސ٬σʔλͷσʔλҠߦ

Slide 26

Slide 26 text

৽نސ٬ 1BZ+Q طଘސ٬ 1BZ+Q ܾࡁ 1BZ+Q

Slide 27

Slide 27 text

৽نސ٬ 4USJQF طଘސ٬ 1BZ+Q ܾࡁ 4USJQF1BZ+Q

Slide 28

Slide 28 text

৽نސ٬ 4USJQF طଘސ٬ NJHSBUJPO ܾࡁ QFOEJOH

Slide 29

Slide 29 text

৽نސ٬ 4USJQF طଘސ٬ 4USJQF ܾࡁ 4USJQF

Slide 30

Slide 30 text

• ച্ɺೖۚͷαΠΫϧ͕มԽ͢Δ • ΧʔυϒϥϯυʹΑͬͯ΋ҟͳΔʂ • όοΫΦϑΟεͱௐ੔ɺ࣮૷ όοΫΦϑΟεͱͷ࿈ܞ

Slide 31

Slide 31 text

• Ҡߦ͸੔ཧͷ޷ػͱଊ͑Δ • Ϩϙʔτ಺༰ɾ࣌ظΛ࠶ઃܭ͢Δ

Slide 32

Slide 32 text

• ʮച্ΛకΊΔλΠϛϯάͰച্ͷ಺༁͕஌Γ͍ͨʂʯ • => Stripe ଆͷܾࡁҰཡ • ʮͦͷച্͕͍ͭೖۚ͞ΕΔ༧ఆͳͷ͔ʯΛؚΊΔ • ʮೖۚͷλΠϛϯάͰͦͷೖۚͷ಺༁͕஌Γ͍ͨʂʯ • => Stripe ଆͷೖۚ಺༁ ʮ͍ͭɺͲͷ਺ࣈ͕ඞཁʁʯ

Slide 33

Slide 33 text

݄ച্"""ԁ ݄ೖۚ༧ఆQQQԁ ݄ೖۚ༧ఆRRRԁ ݄ച্###ԁ ݄ೖۚ༧ఆSSSԁ ݄ೖۚ༧ఆTTTԁ ݄ೖۚ:::ԁ ݄ച্RRRԁ ݄ച্SSSԁ ݄ೖۚ999ԁ ݄ച্PPPԁ ݄ച্QQQԁ

Slide 34

Slide 34 text

• Ϛελσʔλ͸ Stripe ͷ API • ͳΜͰ΋औΕΔʂ • ඞཁͳ௥Ճ৘ใ͸ܾࡁ࣌఺ͰϝλσʔλʹؚΊΔ • ʮϗετ୆਺ʯʮ૊৫໊ʯetc • API ܦ༝ͰϨϙʔτΛ࡞੒ • ޙॲཧΛՃ͔͑ͯΒόοΫΦϑΟεʹఏग़

Slide 35

Slide 35 text

Ҡߦ͠·ͨ͠

Slide 36

Slide 36 text

Stripe Mackerel Stripe.js v2 Mackerel JS CardNumber, etc Token Token Token Customer ࠶ܝ

Slide 37

Slide 37 text

Stripe Payments Mackerel Customer.charge( amount: 2*1800, customer: "XXX" ) ݄ॳόον ࠶ܝ

Slide 38

Slide 38 text

• ࠓͷͱ͜ΖStripe ΛඇৗʹϓϦϛςΟϒʹ࢖͍ͬͯΔ • Stripe ར༻ͱ͍͏ελʔτϥΠϯʹ • ͳΔ΂ͦ͘ͷ··Ҡߦ͢Δ͜ͱΛ༏ઌ • ΑΓϦονͳιϦϡʔγϣϯʹ΋໪࿦ڵຯ͕͋Δʂʂ • Elements / Billing • ࣮ࡍ Elements ΁ͷҠߦΛ·͞ʹ࣮ࢪத

Slide 39

Slide 39 text

• ܧଓతʹαʔϏεશମΛվળ͍ͯ͘͠ • ܾࡁػೳ΋"੟Ҭ" ʹ͠ͳ͍ • ϢʔβʔɺϏδωεɺόοΫΦϑΟε SaaS ఏڙऀͱͯ͠

Slide 40

Slide 40 text

• ๛෋ͳػೳɾվળͷԸܙΛड͚͍ͯ͘ • ࠓޙͷ·͢·͢ͷύϫʔΞοϓʹظ଴ • ࠷ۙ͸੥ٻॻʹ஫໨͍ͯ͠·͢ SaaS ར༻ऀͱͯ͠

Slide 41

Slide 41 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠