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

Twilio + Stripeで 簡単決済

02886e95c50822b9aa2552da1e518491?s=47 Takayuki
November 23, 2019

Twilio + Stripeで 簡単決済

Twilio + Stripeで簡単決済

02886e95c50822b9aa2552da1e518491?s=128

Takayuki

November 23, 2019
Tweet

Transcript

  1. Twilio + StripeͰ ؆୯ܾࡁ

  2. 1 ձࣾ঺հɾࣗݾ঺հ 2 Twilioͱ͸ʁ Agenda 3 ಋೖํ๏

  3. 1 ձࣾ঺հɾࣗݾ঺հ

  4. 1.ࣗݾ঺հ ◆໊લ ླ໦ ޹೭(Suzuki Takayuki) ※ಉ੏ಉ໊ଟͯ͘ࠔͬͯ·͢ɻɻɻ ◆ࣗݾ঺հ ɾ1990೥ɺਆಸ઒ݝੜ·Εɻ ɾࣾձਓʹͳ͔ͬͯΒɺϓϩάϥϛϯάΛ࢝ΊΔɻ ɾ2015೥ʹϑϧεϐʔυʹೖࣾ͠ɺ2017೥ʹಠཱɻ

    ɾݱࡏ͸ɺडୗ։ൃΛ΍ΓͭͭɺࣗࣾWebαʔϏεΛ։ൃதɻ ◆झຯ ίεϓϨɺԻָϥΠϒɺϚϥιϯେձʹग़Δɺ໺ٿ؍ઓ ◆εΩϧ PHP,Symfony2,CakePHP3,Laravel5, JavaScript,backbone.js,Angular.js
  5. 2013/04 ৽ଔͰ౦ژͷITϕϯνϟʔاۀʹ γεςϜΤϯδχΞͱͯ͠ೖࣾ 2015/07 ౦ژͷ্৔اۀͰWebΤϯδχΞ ͱͯ͠ೖࣾ ܦྺ 2015/07 ϑϦʔϥϯεΤϯδχΞͱͯ͠ ಠཱ

    2017/11 ԭೄͰγεςϜ։ൃձࣾΛىۀ 2019/08 ౦ژͱԭೄͷاۀ༷͔Βͷ։ൃҊ݅Λ੥͚͍ͯΔɻ
  6. 1.ࣗݾ঺հ

  7. Copyright Re:Build.inc All Rights Reserved. ձࣾ঺հ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝԭೄࢢதԝ̍ஸ໨̍̒−̕

    ◆ࣄۀ಺༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 7໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪ঑ͯ͠·͢ʂ
  8. 2 Twilioͱ͸ʁ

  9. 9 2 Twilioͱ͸ʁ Twilio͸Ի੠௨࿩ɺϝοηʔδϯάʢSMS/νϟοτʣɺϏσΦͳͲ ͷ ༷ʑͳίϛϡχέʔγϣϯखஈΛΞϓϦέʔγϣϯ΍Ϗδωε ΁༰қʹ૊ΈࠐΉ͜ͱͷͰ͖ΔΫϥ΢υAPIαʔϏεͰ͢ɻ https://twilio.kddi-web.com/availability/

  10. 1 0 ϝϦοτ ར༻ྉ͸࢖ͬͨ෼ͷΈ Twilioʹ͸ɺॳظඅ༻΍ֹ݄جຊྉ͕͋ Γ·ͤΜɻ ༧Ίνϟʔδ͓͍ͯͨ͠ϙ Πϯτ͔Βɺ࣮ࡍʹ࢖ͬͨ෼͚͕ͩҾ͖ མͱ͞ΕΔ࢓૊ΈͰ͢ɻ ར༻ঢ়گ͕ม

    ಈ͢ΔΑ͏ͳαʔϏε΍ɺελʔτΞο ϓͷձ༷ࣾʹ΋ར༻͠΍͍͢ྉۚମܥͱ ͳ͍ͬͯ·͢ɻ ి࿩ձࣾͱͷܖ໿ෆཁ TwilioΛར༻͢Ε͹ɺطଘͷి࿩ձࣾͱ ͷܖ໿͸ෆཁʹͳΓ·͢ɻ Έͳ͞Μ ͸ɺTwilioͷΞΧ΢ϯτΛ࡞੒͢Δ͚ͩ Ͱɺ೔ຊΛؚΉੈք100ϱࠃҎ্ͷి࿩ ൪߸Λऔಘ͢Δ͜ͱ͕Ͱ͖·͢ɻ ΋ͪ ΖΜͦͷ൪߸Λ࢖ͬͯɺTwilioܦ༝ͷి ࿩ͷडൃ৴͕ՄೳͰ͢ɻ ϓϩάϥϜͰ੍ޚՄೳ Twilioͷ࠷େͷಛ௕͸ɺϓϩάϥϜ Λ࢖ͬͯి࿩΍SMSɺFAXͳͲΛ੍ ޚͰ͖Δ͜ͱͰ͢ɻ ྫ͑͹ɺαʔόʔ ʹো֐͕ൃੜͨ͠ͱ͖ʹɺ਺ߦͷίʔ υͰࣗಈతʹి࿩Λ͔͚ͨΓɺ͔͔ͬ ͖ͯͨి࿩ʹࣗಈͰԠ౴͢ΔΑ͏ͳ ࢓૊ΈΛAPIΛ࢖ͬͯ؆୯ʹ࡞Ε· ͢ɻ 1 2 3
  11. 11 ಋೖࣄྫ ʰAir ΢ΣΠτʱʹి࿩΁ͷࣗಈൃ ৴ɾԠ౴ػೳΛ౥ࡌͨ͜͠ͱͰɺड ෇࣌ʹి࿩൪߸Λೖྗ͍͍͓ͨͩͨ ٬༷ʹ͸ɺʮϫϯλονʯͰి࿩Λ ໐Β͓ͯ͠஌ΒͤͰ͖ΔΑ͏ʹͳΓ ·ͨ͠ɻ·ͨɺࣗಈԻ੠ʹΑΔ͝Ҋ ಺ͷͨΊɺళฮͷࠞࡶ࣌Ͱ΋ి࿩Λ

    ͔͚ΔਓखΛඞཁͱ͠·ͤΜɻ https://twilio.kddi-web.com/case/recruitlifestyle/
  12. 3 ಋೖํ๏

  13. ߏ੒ APIΛୟ͘ ి࿩

  14. 1 4 Twilio PayͷηοτΞοϓ Twilioͷ؅ཧίϯιʔϧʹϩάΠϯ͠· ͢ɻ Programmable VoiceͷதͷઃఆΛબ୒ ͠·͢ɻ PCI

    ModeͷEnable PCI ModeϘλϯΛ ԡͯ͠ɺPCIϞʔυΛ༗ޮʹ͠·͢ɻ https://qiita.com/mobilebiz/items/31b061af62b35fd82724
  15. 1 5 Twilio PayͷηοτΞοϓ Programmable Voiceͷதͷ <Pay>ConnectorsΛબ୒͠·͢ɻ https://qiita.com/mobilebiz/items/31b061af62b35fd82724

  16. 1 6 Twilio PayͷηοτΞοϓ Twilioͷ؅ཧίϯιʔϧ͔ΒɺRuntime Λબ୒͠ɺ͞ΒʹTwiML BinsΛબͼ· ͢ɻ Create a

    new Bins΋͘͠͸ɺ੺͍ϓϥ εΞΠίϯΛԡͯ͠ɺ৽͍͠TwiML BinsΛ࡞੒͠·͢ɻ FRIENDLY NAMEʹ͸ɺͳʹ͔ద౰ͳ ໊લΛ͍Ε·͢ɻ TWIMLͷཝΛҎԼͷΑ͏ʹॻ͖׵͑· ͢ɻ https://qiita.com/mobilebiz/items/31b061af62b35fd82724
  17. 1 7 DEMO

  18. 1 8 DEMO ߪೖ͞Ε͍ͯΔࣄΛ֬ೝ