Upgrade to Pro — share decks privately, control downloads, hide ads and more …

webpayment-study

 webpayment-study

ペパボ新卒エンジニア研修

Yuta Kurotaki

July 05, 2016
Tweet

More Decks by Yuta Kurotaki

Other Decks in Technology

Transcript

  1. 8FCΞϓϦέʔγϣϯͱΫϨδοτΧʔυܾࡁ
    ࠇ୍༔ଠ(.01FQBCP JOD
    ৽ଔΤϯδχΞݚम
    8FCܾࡁೖ໳

    View full-size slide

  2. ΤϯδχΞ
    ࠇ୍༔ଠ!LVSPUBLZ
    ຊࣾࣄۀ෦NJOOFܾࡁνʔϜ
    IUUQTHJUIVCDPNLVSPUBLZ

    View full-size slide

  3. IUUQTHZB[PDPNBEBBDGEC

    View full-size slide

  4. ܾࡁͱ͸
    wऔҾʹΑͬͯൃੜͨ͠࠴ݖɾ࠴຿Λɺ͓ۚͳͲΛ΍ΓͱΓͯ͠ղফ͢Δ͜ͱ
    wফඅߦಈʹ͸ඞͣʮܾࡁʯ͕൐͏

    View full-size slide


  5. ࣗಈंΛചങ͢ΔऔҾΛߦ͏
    wങ͍ख͸ɺࣗಈंΛड͚औΔ୅ΘΓʹ୅ۚΛࢧ෷͏࠴຿Λෛ͏
    wചΓख͸ɺࣗಈंΛҾ౉͢୅ΘΓʹ୅ۚΛड͚औΔ࠴ݖ͕ൃੜ
    w͓ۚͷࢧ෷͍ɾडऔΓʹΑܾͬͯࡁΛߦ͏͜ͱʹΑΓɺ͜ΕΒͷ࠴ݖɾ࠴຿͕
    ղফ

    View full-size slide

  6. ਎ͷճΓͷܾࡁʹ͍ͭͯߟ͑ͯΈΑ͏ ෼

    wࣗ෼ͷ೔ৗੜ׆ͷதͰൃੜͯ͠ΔऔҾʹ͍ͭͯݸ͘Β͍ग़ͯ͠Έ͍ͯͩ͘͞

    View full-size slide

  7. ೔ৗੜ׆ʹ͓͚Δܾࡁ
    wσύʔτͰ෰Λങ͏
    wࣗಈൢചػͰ͓஡Λങ͏
    wຊ԰ͰຊΛങ͏
    wόεʹ৐ͬͯ৐ं୅ۚΛ෷͏
    wϨετϥϯͰ͝͸ΜΛ৯΂͓ͯձܭΛ͢Δ

    View full-size slide

  8. ೔ৗੜ׆ʹ͓͚ΔΦϯϥΠϯܾࡁ
    wωοτγϣοϓͰ͓஡Λങ͏
    w"NB[POͰຊΛങ͏
    w;0;0508/Ͱ෰Λങ͏
    wϒϩάαʔϏεͷֹ݄ར༻ྉۚΛࢧ෷͏

    View full-size slide

  9. 8FCαʔϏεͷܾࡁखஈʹ͍ͭͯߟ͑ͯΈΑ͏ ෼

    wͲΜͳܾࡁखஈ͕͋Δ͔ʁ

    View full-size slide

  10. ༷ʑͳܾࡁखஈ
    wΫϨδοτΧʔυܾࡁ
    wΩϟϦΞܾࡁ
    wܞଳి࿩ͷར༻ྉۚͱ·ͱΊͯࢧ෷͍͕Ͱ͖Δ
    wίϯϏχܾࡁ
    w෷ࠐථΛίϯϏχʹ࣋ͬͯߦͬͯ୅ۚΛࢧ෷͏
    wۜߦৼࠐ
    wࢦఆͷޱ࠲ʹೖۚ͢Δ

    View full-size slide

  11. ༷ʑͳܾࡁ୅ߦαʔϏε
    wΠϓγϩϯ
    wϖΠϝϯτήʔτ΢ΣΠ
    w4USJQF
    w8FC1BZ
    wͨ͘͞Μ͋Γ·͢
    8FCαʔϏεͰܾࡁ͕ඞཁʹͳͬͨ࣌ʹར༻͢Δ

    View full-size slide

  12. ΫϨδοτΧʔυݟͨ͜ͱ͋Γ·͔͢ʁ

    View full-size slide

  13. ΫϨδοτΧʔυʹ΋͍Ζ͍Ζ͋Δ
    wΫϨδοτΧʔυ
    wޙ෷͍
    wσϏοτΧʔυ
    wࠓ෷͍ɺར༻ͷ౎౓ɺۜߦޱ࠲͔Βར༻ֹۚΛҾ͖མͱ͢
    wϓϦϖΠυΧʔυ
    wલ෷͍ɺΧʔυʹࣄલʹνϟʔδ͢Δ
    w4VJDBɺ&EZՁ஋Λ಺෦ʹ஝͑ͨΧʔυɺ47$ 4UPSFE7BMVF$BSE

    View full-size slide

  14. ΫϨδοτΧʔυ൪߸
    wΫϨδοτΧʔυͷ൪߸͸*40*&$Ͱ࢓༷͕ܾΊΒΕ͍ͯΔ
    w͔Βܻ໨·Ͱ͸ൃߦऀΛࣝผ͢ΔͨΊͷ൪߸
    w࠷ޙͷܻΛνΣοΫσδοτ ޡΓ֬ೝͷͨΊͷ਺ࣈ
    ͱͯ͠࢖༻

    View full-size slide

  15. -VIOΞϧΰϦζϜ
    wΫϨδοτΧʔυ൪߸ͷೖྗޡΓνΣοΫʹ࢖༻͞Ε͍ͯΔ
    wҰͷҐ͔Β਺͑ͯح਺൪໨ͷ৔߹͸ͦͷ··ɺۮ਺൪໨ͷ৔߹͸਺Λഒ͢Δ
    wഒʹͨ͠ۮ਺൪໨ͷ਺͕Ҏ্ͷ৔߹͸ɺͦͷ֤ܻΛ଍ܻͯ͠ʹ͢Δ
    wಘΒΕܻͨͷ਺Λશ෦଍͢
    wͰׂΓ੾ΕΕ͹ਖ਼౰ͳ൪߸

    View full-size slide

  16. -VIOΞϧΰϦζϜΛ࣮૷ͯ͠൪߸Λݕূͯ͠ΈΑ͏ ෼

    wҰͷҐ͔Β਺͑ͯح਺൪໨ͷ৔߹͸ͦͷ··ɺۮ਺൪໨ͷ৔߹͸਺Λഒ͢Δ
    wഒʹͨ͠ۮ਺൪໨ͷ਺͕Ҏ্ͷ৔߹͸ɺͦͷ֤ܻΛ଍ܻͯ͠ʹ͢Δ
    wಘΒΕܻͨͷ਺Λશ෦଍͢
    wͰׂΓ੾ΕΕ͹ਖ਼౰ͳ൪߸

    View full-size slide

  17. ΫϨδοτΧʔυܾࡁͷऔҾͷྲྀΕ
    ར༻ऀ Ճໍళ .FSDIBOU

    ΠγϡΞʔ ΞΫϫΠΞϥʔ
    Χʔυൃߦۀ຿

    ੥ٻ ར༻୅ۚͷࢧ෷
    औҾσʔλΛ௨஌
    Χʔυར༻ऀ෼ͷࢧ෷͍
    ঎඼Λఏڙ͢Δ
    Χʔυ৘ใΛೖྗ
    औҾσʔλΛૹܾͬͯࡁ
    ܾࡁͷ݁ՌΛૹΔ

    View full-size slide

  18. 8FCΞϓϦέʔγϣϯʹ࣮૷ͯ͠ΈΑ͏
    w3BJMTνϡʔτϦΞϧͰ࡞ͬͨΞϓϦʹืۚػೳΛ࣮૷ͯ͠ΈΔ
    w8FC1BZͷ$IFDLPVU)FMQFSΛ࢖ͬͯɺ8FCܾࡁΛମݧ͢Δ
    wΧʔυ৘ใʹ͸ࣗ෼ͷ໊લΛೖΕ͍ͯͩ͘͞ :65",6305",*ͳͲ

    w๻͕IUUQTXFCQBZKQUFTUEBTICPBSEʹͯ՝ۚΛ֬ೝͰ͖ͨΒ0,
    wςετΧʔυͱςετ؀ڥΛར༻͢ΔͷͰ࣮ࡍʹ͓͕ۚҾ͖མͱ͞ΕΔ͜ͱ͸
    ແ͍Ͱ͢

    View full-size slide

  19. ϚχϡΞϧΛݟͯૉৼΓΛ͠·͢ ෼

    gem install webpay
    wIUUQTXFCQBZKQEPDTJOUSPEVDUJPO
    wࣗ෼ͰΞΧ΢ϯτΛ࡞ͬͯ΋0,Ͱ͢

    View full-size slide

  20. 3BJMTνϡʔτϦΞϧͷΞϓϦέʔγϣϯ্Ͱ΍ͬͯΈΑ͏ ෼

    git checkout -b test-payment
    wϒϥϯνΛ͖ͬͯɺ$IFDLPVU)FMQFSΛ޷͖ͳϖʔδʹ͓͍ͯԼ͍͞
    wSBJMTTFSWFSΛىಈͯ͠ɺը໘Λૢ࡞࣮ͯ͠ࡍʹܾࡁ ςετ؀ڥ
    ͠·͠ΐ͏
    w͕࣌ؒ༨ͬͨΒΤϥʔϋϯυϦϯά΍6*ͷௐ੔ͳͲ΋͓͜ͳͬͯ0,Ͱ͢

    View full-size slide

  21. ܾࡁ͢Δͱ͖ʹ࣮ࡍʹԿ͕ى͖͍ͯͨͷʁ
    ߪೖऀ
    Ճໍళαʔό
    ܾࡁ୅ߦαʔϏε
    औҾ݁Ռ௨஌
    τʔΫϯૹ৴
    τʔΫϯܾࡁ ݁Ռ௨஌
    ϫϯλΠϜτʔΫϯൃߦ
    Χʔυ৘ใΛૹ৴
    ܾࡁૹ৴
    ܾࡁ݁Ռ௨஌
    ΞΫϫΠΞϥʔ

    View full-size slide

  22. τʔΫϯແ͠Ͱ௚઀σʔλΛૹΔύλʔϯ
    ߪೖऀ
    Ճໍళαʔό
    ܾࡁ୅ߦαʔϏε
    औҾ݁Ռ௨஌
    ݁Ռ௨஌
    ܾࡁૹ৴
    ܾࡁ݁Ռ௨஌
    ΞΫϫΠΞϥʔ
    Χʔυ৘ใΛૹ৴
    Χʔυ৘ใΛૹ৴

    View full-size slide

  23. ͳͥ͜Μͳ͜ͱΛ͍ͯ͠Δͷ͔ߟ͑ͯΈΑ͏ ෼

    wԿͰͩΖ͏ʁ

    View full-size slide

  24. ηΩϡϦςΟͷ໰୊
    wΫϨδοτΧʔυͷ৘ใ͕࿙ΕΔͱେม
    w.BTUFS$BSE΍7*4"ͳͲͷࠃࡍΧʔυϒϥϯυ͔Β՝͞ΕΔേۚ
    wࠃࡍతͳηΩϡϦςΟج४΁ͷෆ९क͕ൃ֮ͨ͠৔߹͸ճͷࣄނͰ υ
    ϧ͔Β υϧͷേۚ
    wΧʔυ͸࠶ൃߦͷίετɺސ٬ରԠͷίετ
    wϒϥϯυՁ஋ͷ௿Լ

    View full-size slide

  25. 1$*%44 1BZNFOU$BSE*OEVTUSZ%BUB4FDVSJUZ4UBOEBSE

    w"NFSJDBO&YQSFTT %JTDPWFS +$# .BTUFS$BSE 7*4"ͷେϒϥϯυ͕ڞ
    ಉͰઃཱͨ͠1$*44$ 1$*4FDVSJUZ4UBOEBSET$PVODJM
    ʹΑͬͯࡦఆ
    w1$*%44ʹ४ڌ͢Δ͜ͱͰɺ৘ใ࿙Ӯ౳ͷϦεΫΛ཈͑ΒΕΔ
    w1$*%44ͷཁ݅Λ֬ೝͯ͠࢓༷ΛܾΊΔ͜ͱͰ1$*%44४ڌͷίετΛ཈͑Β
    ΕΔ
    wΫϨδοτΧʔυ൪߸ʹؔͯ͠͸ಛʹॏࢹ͞Ε͍ͯΔ

    View full-size slide

  26. ৘ใ࿙Ӯ͕ى͖ΔେϦεΫͱରࡦ
    wอଘ
    wΫϨδοτΧʔυ৘ใΛͦͷ··%#ʹอଘ͠ͳ͍
    wॲཧ
    wը໘ભҠܕͷܾࡁϖʔδΛར༻͢ΔɻΫϥΠΞϯταΠυͰͷτʔΫϯԽ
    w఻ૹ
    w44-Ͱͷ௨৴ͷ҉߸ԽɺΫϥΠΞϯταΠυͰͷτʔΫϯԽ

    View full-size slide

  27. ·ͱΊ
    wܾࡁʹ͍ͭͯ
    w঎඼΍໾຿Λఏڙ͢Δ8FCαʔϏεΛ࣮૷͢Δࡍʹ͸ܾࡁػೳ͕ඞཁ
    wΫϨδοτΧʔυͷ࢓૊Έʹ͍ͭͯ
    wऔҾͷྲྀΕͱΧʔυͷ࢓૊Έ
    w8FCΞϓϦέʔγϣϯʹ͓͚Δ࣮૷ํ๏ͱͦͷ஫ҙϙΠϯτ
    w1$*%44ͷ͓͸ͳ͠

    View full-size slide