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

ecnight-webpay

8358fe546d1b082b163f18a02eec145d?s=47 Kengo Hamasaki
November 17, 2014

 ecnight-webpay

ECにおける決済のフローで知っておきたいこと at EC Night #1
http://ec-night.doorkeeper.jp/events/16355

8358fe546d1b082b163f18a02eec145d?s=128

Kengo Hamasaki

November 17, 2014
Tweet

Transcript

  1. &$ʹ͓͚ΔܾࡁͷϑϩʔͰ ஌͓͖͍ͬͯͨ͜ͱ EC Night #1 http://ec-night.doorkeeper.jp/events/16355 @hmsk from WebPay

  2. Me @hmsk / Kengo Hamasaki VP Product Development at WebPay

    Living in CA, USA
  3. WebPay require 'webpay' webpay = WebPay.new('test_secret_eHn4TTgsGguBcW764a2KA8Yd') webpay.charge.create( currency: ‘jpy’, amount:

    400, card: {number: ‘4242-4242-4242-4242’, exp_month: 11, exp_year: 2014, cvc: ‘123’, name: ‘KENGO HAMASAKI’} ) https://webpay.jp
  4. => #<WebPay::ChargeResponse id: "ch_70U72DaDGbzE492" object: "charge" livemode: false amount: 400

    card: #<WebPay::CardResponse> created: 1416216426 currency: "jpy" paid: true captured: true refunded: false amount_refunded: 0 customer: nil recursion: nil shop: nil description: nil failure_message: nil expire_time: nil fees: [#<WebPay::ChargeFeeResponse>]
  5. Talking about… wಛఆ঎औҾ๏ͱ$UP$ w&$ʹ͓͚Δܾࡁ w8FC1BZͱ&$ w&$αʔϏεʹ͓͚Δ"QQMF1BZར༻

  6. Talking about… wಛఆ঎औҾ๏ͱ$UP$ w&$ʹ͓͚Δܾࡁ w8FC1BZͱ&$ w&$αʔϏεʹ͓͚Δ"QQMF1BZར༻

  7. Talking about… w&$ʹ͓͚ΔܾࡁͷϑϩʔͰ஌͓͖ͬͯ ͍ͨ͜ͱ

  8. &$ʹ͓͚Δ ܾࡁͷϑϩʔ

  9. ܾࡁ৘ใΛ ೖྗ͢Δ ! ֬ఆͯ͠ ϨδʹਐΉ " ߪೖ಺༰Λ ֬ೝ͢Δ # ׬ྃ͠

    ܾࡁ͢Δ $
  10. ֬ఆͯ͠ ϨδʹਐΉ ܾࡁ৘ใΛ ೖྗ͢Δ ߪೖ಺༰Λ ֬ೝ͢Δ ߪೖΛ ׬ྃ͢Δ ! "

    # $ http://www.amazon.co.jp/gp/cart/view.html
  11. ֬ఆͯ͠ ϨδʹਐΉ ܾࡁ৘ใΛ ೖྗ͢Δ ߪೖ಺༰Λ ֬ೝ͢Δ ߪೖΛ ׬ྃ͢Δ ! "

    # $ https://www.amazon.co.jp/gp/buy/spc/handlers/display.html
  12. ֬ఆͯ͠ ϨδʹਐΉ ܾࡁ৘ใΛ ೖྗ͢Δ ߪೖ಺༰Λ ֬ೝ͢Δ ߪೖΛ ׬ྃ͢Δ ! "

    # $ https://www.amazon.co.jp/gp/buy/spc/handlers/display.html
  13. ֬ఆͯ͠ ϨδʹਐΉ ܾࡁ৘ใΛ ೖྗ͢Δ ߪೖ಺༰Λ ֬ೝ͢Δ ߪೖΛ ׬ྃ͢Δ ! "

    # $ %
  14. ܾࡁ৘ใΛ ೖྗ͢Δ ! ֬ఆͯ͠ ϨδʹਐΉ " ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ

    ׬ྃ͢Δ $
  15. ܾࡁ৘ใΛ ೖྗ͢Δ ! ֬ఆͯ͠ ϨδʹਐΉ " ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ

    ׬ྃ͢Δ $
  16. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $

  17. ϑϩʔΛݟ௚͢ ηΩϡϦςΟΛݟ௚͢ ઌΛݟਾ͑Δ

  18. ϑϩʔΛݟ௚͢

  19. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ ༗ޮͳΧʔυ͕

    ೖྗ͞Εͨʁ
  20. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ & '
  21. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ & '
  22. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ Χʔυͷঢ়ଶʹ໰୊ % & & '
  23. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ Χʔυͷঢ়ଶʹ໰୊ % & & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ (
  24. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ Χʔυͷঢ়ଶʹ໰୊ % & & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ w ϖʔδભҠଟͯ͘ਏ͍ʜ w Χʔυձࣾʹి࿩ਏ͍ʜ w ଞͷΧʔυͳͯ͘ਏ͍ʜ ( (
  25. ܾࡁͷ࢓૊ΈΛ࢖͏

  26. Ծച্ wΧʔυͷ༩৴࿮ΛࢦఆֹۚͰ֬อ͢Δ wʮ͜ͷֹۚͰܾࡁͰ͖·͔͢ʁʯ w͋ͱͰຊܾࡁʢ࣮ച্ʣ w͋ͱͰഁغ

  27. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ Χʔυͷঢ়ଶʹ໰୊ % & & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ w ϖʔδભҠଟͯ͘ਏ͍ʜ w Χʔυձࣾʹి࿩ਏ͍ʜ w ଞͷΧʔυͳͯ͘ਏ͍ʜ ( (
  28. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใ

    ΋͘͠͸ঢ়ଶʹ໰୊ w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ͜ͷΧʔυͰ 999ԁԾച্ ࣮ച্Խ͢Δ Χʔυͷঢ়ଶʹ໰୊ % & & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ w ϖʔδભҠଟͯ͘ਏ͍ʜ w Χʔυձࣾʹి࿩ਏ͍ʜ w ଞͷΧʔυͳͯ͘ਏ͍ʜ ( (
  29. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใ

    ΋͘͠͸ঢ়ଶʹ໰୊ w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ͜ͷΧʔυͰ 999ԁԾച্ & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ ( ࣮ച্Խ͢Δ
  30. Ծച্ wΧʔυ৘ใֹۚ֬ఆͰઌʹܾࡁՄೳੑ Λ֬ೝ͢Δ wߪೖ͕֬ఆͱͳͬͨΒ࣮ച্Խ͢Δ w཭୤ͨ͠Β͋ͱͰഁغ͢Δ

  31. WebPay require 'webpay' webpay = WebPay.new('test_secret_eHn4TTgsGguBcW764a2KA8Yd') webpay.charge.create( currency: ‘jpy’, amount:

    400, + capture: false, card: {number: ‘4242-4242-4242-4242’, exp_month: 11, exp_year: 2014, cvc: ‘123’, name: ‘KENGO HAMASAKI’} )
  32. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใ

    ΋͘͠͸ঢ়ଶʹ໰୊ w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ͜ͷΧʔυͰ 999ԁԾച্ & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ ( ࣮ച্Խ͢Δ
  33. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใ

    ΋͘͠͸ঢ়ଶʹ໰୊ w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ͜ͷΧʔυͰ 999ԁԾച্ & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ ( ࣮ച্Խ͢Δ
  34. ׈ΔՄೳੑΛݮΒ͢

  35. ܾࡁ৘ใͷೖྗ w&$԰͞Μͷ࿹ͷݟͤॴ wྫ͑͹ʜ wաڈͷߪೖ࣌ʹอଘͯ͋͠Δ wଞͷը໘Ͱطʹొ࿥͓ͤͯ͘͞ wDBSEJPͳͲೖྗΞγετ

  36. https://www.card.io/

  37. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใ

    ΋͘͠͸ঢ়ଶʹ໰୊ w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ͜ͷΧʔυͰ 999ԁԾച্ & ' w ϑΥʔϜͷೖྗ͕ਏ͍ w Χʔυखݩʹͳͯ͘ਏ͍ ( ࣮ച্Խ͢Δ
  38. ηΩϡϦςΟΛݟ௚͢

  39. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $

  40. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! !
  41. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! ! * όοΫΤϯυ !
  42. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! ! * όοΫΤϯυ !
  43. ୅ସτʔΫϯ wΧʔυ৘ใΛ୅ସ͢Δจࣈྻ wΫϥΠΞϯταΠυͱܾࡁձࣾͰ௨৴ w࠶ར༻ՄೳʹͳΔ΋ͷ΋͋Δ

  44. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! ! * όοΫΤϯυ !
  45. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! * όοΫΤϯυ + + + +
  46. ୅ସτʔΫϯ wόοΫΤϯυͰͷอଘɺॲཧɺ఻ૹΛ ճආͰ͖Δ wܾࡁձࣾ͸ηΩϡϦςΟج४ͷ४ڌͰ ୲อ

  47. WebPay <script type="text/javascript" src="https://js.webpay.jp/v1/"></script> WebPay.setPublishableKey("test_public_gVvaHW5nseyIfjtaO6bN36vr"); WebPay.createToken( convert_card_parameters($(card_form)), , webpayResponseHandler);

  48. WebPay require 'webpay' webpay = WebPay.new('test_secret_eHn4TTgsGguBcW764a2KA8Yd') webpay.charge.create( currency: ‘jpy’, amount:

    400, card: + tok_u7fWx6xObdff - {number: ‘4242-4242-4242-4242’, - exp_month: 11, - exp_year: 2014, - cvc: ‘123’, - name: ‘KENGO HAMASAKI’} )
  49. ઌΛݟਾ͑Δ

  50. http://www.apple.com/apple-pay/

  51. "QQMF1BZ w1BTTCPPLʹ݁ͼ͚ͭͨΧʔυΛར༻ wܾࡁ·Ͱ࠷଎ͷϑϩʔ w୅ସτʔΫϯ4FDVSF &MFNFOU5PVDI *%ʹΑΔηΩϡϦςΟ wਅՁ͸zର໘Ͱͳ͘΢Σϒͷܾࡁʹ΋࢖ ͑ͯɺطଘͷܾࡁήʔτ΢ΣΠͰରԠ Ͱ͖Δz͜ͱ

  52. https://stripe.com/apple-pay

  53. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ Χʔυͷ৘ใʹ໰୊

    w ଧͪؒҧ͍ʁ w ଞͷΧʔυʁ ༗ޮͳΧʔυ͕ ೖྗ͞Εͨʁ ࢦఆֹۚͰ ܾࡁͰ͖ͨʁ Χʔυͷঢ়ଶʹ໰୊ % & & ' w ϑΥʔϜͷೖྗ͕ਏ͍ʜ w Χʔυखݩʹͳͯ͘ਏ͍ʜ w ϖʔδભҠଟͯ͘ਏ͍ʜ w Χʔυձࣾʹి࿩ਏ͍ʜ w ଞͷΧʔυͳͯ͘ਏ͍ʜ ( (
  54. ߪೖ಺༰Λ֬ೝͭͭ͠ ΧʔυΛબ୒͢Δ ߪೖΛ ׬ྃ͢Δ $ Χʔυͷঢ়ଶʹ໰୊ w ଞͷΧʔυʁ & 

  55. ܾࡁ৘ใΛ ೖྗ͢Δ ! ߪೖ಺༰Λ ֬ೝ͢Δ # ߪೖΛ ׬ྃ͢Δ $ )

    ܾࡁձࣾ * όοΫΤϯυ ! ! * όοΫΤϯυ !
  56. ߪೖ಺༰Λ֬ೝͭͭ͠ ΧʔυΛબ୒͢Δ ߪೖΛ ׬ྃ͢Δ $ ) ܾࡁձࣾ * όοΫΤϯυ -

    - 
  57. ߪೖ಺༰Λ֬ೝͭͭ͠ ΧʔυΛબ୒͢Δ ߪೖΛ ׬ྃ͢Δ $ ) ܾࡁձࣾ * όοΫΤϯυ -

    -  Χʔυϒϥϯυ Χʔυൃߦऀ - - ! +
  58. Apple Pay on WebPay wઈࢍٕज़ݕূத wಈ࡞͢Δͱ͜Ζ·Ͱ͸֬ೝ wࠃ಺Ͱ࢖͑ΔΑ͏ʹ͢Δಈ͖͕ඞཁ w&$αʔϏεӡӦऀͷօ͞Μʹಧ͚ΒΕ ΔΑ͏ؤுΓ·͢

  59. https://rebuild.fm/65

  60. Conclusion wԾച্Λ׆༻ͯ͠ϑϩʔΛ࠷దԽ͠Α͏ wΧʔυ৘ใͷܦ࿏Λؾʹ͠Α͏ w"QQMF1BZૣ͘࢖͍͍ͨ

  61. Conclusion w8FC1BZ͸&$αΠτͷܾࡁपΓͷվળ Λ͓ख఻͍͠·͢