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

Alexa×Twilio×Stripeでできる、 新時代ペイメントの作り方 / jp_stri...

Alexa×Twilio×Stripeでできる、 新時代ペイメントの作り方 / jp_stripes_nagoya

Hidetaka Okamoto

February 26, 2019
Tweet

More Decks by Hidetaka Okamoto

Other Decks in Programming

Transcript

  1. A l e x a × Tw i l i

    o × S t r i p e Ͱ Ͱ ͖ Δ ɺ ৽ ࣌ ୅ ϖ Πϝ ϯ τ ͷ ࡞ Γ ํ J P _ S t r i p e s ໊ ݹ ԰ 2 0 1 9 / 2
  2. H i d e t a k a O k

    a m o t o • Digitalcube Co. Ltd. • JP_Stripesژ౎ɾେࡕ • Alexa Campions • AWS Samurai 2017 in Japan
  3. ΍ ͬ ͨ ͜ ͱ • CodeStarଞAWSΛϑϧ׆༻ͯ͠AlexaεΩϧΛ։ൃ͢Δ • Cloud9Λ༻͍ͨΠϯϒϥ΢βίʔσΟϯάΛମݧ͢Δ •

    CodeStarΛར༻ͨ͠CI / CDύΠϓϥΠϯͷߏஙɾӡ༻ʹ͍ͭͯମݧ͢Δ • Twilio / StripeΛ༻͍ͨΦϯϥΠϯܾࡁΛମݧ͢Δ • SAMΛ༻͍ͨServerless APIͷ࣮૷Λମݧ͢Δ • AlexaͷAPIΛ׆༻ͯ͠Ϣʔβʔʹి࿩Λ͔͚Δ࣮૷Λମݧ͢Δ
  4. G o a l AW S ͷ Ϧ ι ʔε

    Λ ϑϧ ׆ ༻ ͠ ͨ ɺ A l e x a εΩϧό ο Ϋ Τ ϯ υ ͷ ։ ൃ ͷ ମ ݧ
  5. ͦ ͷ ࣌ ͷ ࢿ ྉ h t t p

    s : / / b i t . l y / 2 E l m o i J
  6. ࣮ ૷ ͠ ͨ ΋ ͷ • Alexaʹʮి࿩ܾࡁͰܾࡁʯͱ࿩͔͚͠Δ • AWS

    Lambda͕Alexaʹొ࿥͞Εͨి࿩൪߸Λऔಘ͢Δ • AWS Lambda͕Twilio <Pay>Λ࢖ܾͬͯࡁి࿩Λൃ৴ • Twilio <Pay>͕Χʔυ৘ใΛి࿩Ͱड͚औΔ • Stripe্Ͱܾࡁ͕࣮ߦ͞ΕΔ • ׬ྃϝοηʔδ͕ి࿩Ͱ࿩͞Εɺ௨࿩ऴྃ
  7. ٕ ज़ త ͳ ࿩ : S i d e

    Tw i l i o • Twilio Pay͕όοΫΤϯυͰStripeΛར༻͍ͯ͠Δ • Twilioͷૢ࡞͸SDKΛར༻͢Δ͜ͱͰϓϩάϥϚϒϧʹૢ࡞Մೳ • TwilioͰՍిݩͷి࿩൪߸Λߪೖ͢Δඞཁ͋Γʢ݄108ԁʙʣ • from / to͸ࠃ൪߸͕ඞਢʢ+08190-123-4567ʣ
  8. ٕ ज़ త ͳ ࿩ : S i d e

    A l e x a • Alexa͸Ϣʔβʔͷ֤छ৘ใΛAPIܦ༝ͰऔಘՄೳ • ΦϓτΠϯܗ͔ࣜͭඞͣσʔλ͕͋Δͱ͸ݶΒͳ͍ • ϏσΦ௨࿩ػೳͳͲ͕͋Δؔ܎Ͱɺσʔλ͕༗ΔՄೳੑ͸ߴͦ͏ • ಈը΍ԻָΛ഑৴͢Δ͜ͱ΋Մೳ • ؤுΕ͹Alexa + TwilioͰδϟ˓ωοτͷΑ͏ͳTVγϣοϐϯά΋ʁ
  9. ٕ ज़ త ͳ ࿩ : S i d e

    AW S • CodeStarΛ࢖͏͜ͱͰɺCI / CDύΠϓϥΠϯ͕؆୯ʹͭ͘ΕΔ • ςϯϓϨʔτ͕͍ͬͺ͍Ͱ͍Ζ͍Ζ࡞ΕΔ • ͨͩ͠IaCͳͷͰɺखಈมߋͰ͖ͳ͘ͳΔϦεΫ΋͋Δ • Cloud9Λ࢖͏͜ͱͰɺϒϥ΢β͕͋Ε͹Ͳ͜Ͱ΋ίʔσΟϯάՄೳ • TypeScriptͳͲͷܕ෇ݴޠ࢖͏ͱ͍Ζ͍Ζ޾ͤʹͳΔ
  10. ༨ ஊ ɿ S t r i p e C

    h e c k o u t
  11. ࡶ ͳ p ro p s / c o n

    s • [props] Google AnalityicsΈ͍ͨʹίϐϖ͚ͩͰϑΥʔϜ͕࡞ΕΔ • [props] ఆظܾࡁ΋ରԠ͍ͯ͠ΔˍࣸਅΞοϓϩʔυͳͲ΋ରԠ • [props] ߪೖϖʔδ͕͓͠ΌΕ • [props] PromiseͰresult / errorऔΕΔͷͰΰχϣΰχϣͰ͖Δ
  12. ࡶ ͳ p ro p s / c o n

    s • [cons] ϕʔλ൛ • [cons] Customer͕ຖճ৽ن࡞੒͞ΕΔ • [cons] ֤छώϞ෇ͨ͘͠ͳΔͱɺ݁ہJSྗ͕ཁΔ • [cons] ௨ൢͪΌΜͱ΍ΔͳΒStores.jpͱ͔ShopifyͰΑ͘ͳ͍ʁ
  13. J P _ S t r i p e s

    c o n n e c t 2 0 1 9 : 3 / 2 1 O s a k a https://connect2019.jpstripes.com/
  14. h t t p s : / / b i

    t . l y / 2 H 3 r P E E
  15. ։ ࠵ ֓ ཁ • 2019 / 03 / 21:

    ໦༵ɾॕ೔ • MOTEX৽େࡕϏϧɿ৽େࡕӺెา7෼ • ࢀՃඅ༻ɿ1,000ԁ • 12:30ࠒ։৔ɺ13:00։࢝ɺ17:00ऴྃ • 12ηογϣϯɾ2ϫʔΫγϣοϓ + LTେձ
  16. η ο γ ϣ ϯ • Stripe఩ֶ by Stripe •

    ΩϟογϡϨε࠲ஊձ by খౡ͞Μ / Freee / 600 • ӽڥECͷ࢝Ίํ by ༑ా͞Μ / ౻Ҫ͞Μ • ແਓίϯϏχ by 600 ٱอ͞Μ • SaaSͷϓϥΠγϯά by ຊؒ͞Μ
  17. η ο γ ϣ ϯ • Paypal͔ΒͷϚΠάϨʔγϣϯ by ੢ࢁ͞Μ •

    ඇΤϯδχΞ͔ΒݟͨStripe by দຊ͞Μ • ConnectͰͷCtoCϓϥοτϑΥʔϜߏங by ౻ా͞Μ • ψʔϥϘͰͷStripeࣄྫ by ฏࢁ͞Μ • WordPress + StripeͰEC by Ѩ෦͞Μ
  18. ϫ ʔ Ϋ γ ϣ ο ϓ • WordPressͰ͸͡ΊΔECαΠτߏங by

    ҆౻͞Μ • Twilio PayͰͷి࿩ܾࡁ by ߴڮ͞Μɾݹཬ͞Μɾᐾฏ͞Μ
  19. A l e x a D a y 2 0

    1 9 : 4 / 6 K o b e https://alexaday2019.aajug.jp/
  20. h t t p s : / / a l

    e x a d a y 2 0 1 9 . a a j u g . j p /