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

Stripe Connect を使ったサービス構築の裏側

Stripe Connect を使ったサービス構築の裏側

Stripe Connect を使ったサービス構築の裏側

Takayuki

April 20, 2020
Tweet

More Decks by Takayuki

Other Decks in Programming

Transcript

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

    ɾ2015೥ʹϑϧεϐʔυʹೖࣾ͠ɺ2017೥ʹಠཱɻ ɾϑϦʔϥϯεͰϦϞʔτϫʔΫΛ൒೥΍ͬͨޙʹԭೄͰى ۀ ◆झຯ ίεϓϨɺԻָϥΠϒɺϚϥιϯେձʹग़Δɺ໺ٿ؍ઓ JP_StripesԭೄΛӡӦͯ͠·͢ʂ BDD(Ϗʔνۦಈ։ൃ)
  2. Copyright Re:Build.inc All Rights Reserved. 1.ձࣾ঺հ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝಹ೼ࢢٱໜ஍2-2-2

    λΠϜεϏϧ ◆ࣄۀ಺༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 7໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪ঑ͯ͠·͢ʂ
  3. 1 2 Stripe Connectͱ͸ ɾCustomerʢސ٬ʣ: ߪೖऀͰ͋Γ͓ۚΛࢧ෷͏ํɻӈͷਤ Ͱ྘ɻ ɾPlatformʢϓϥοτϑΥʔϜʣ: ͦͷ໊ͷ௨ΓϓϥοτϑΥʔϜΛఏڙ ͢Δํɻӈͷਤͷ੨ɻ

    ɾConnected accounts: ϓϥοτϑΥʔϜΛར༻ͯ͠αʔϏε Λఏڙ͠ɺೖۚΛड͚ΔํʢࢠΞΧ΢ ϯτͱ΋ݺ͹Ε·͢ʣɻӈͷਤͷϐϯ Ϋɻ ࢀߟɿhttps://qiita.com/y_toku/items/7bfa42793801dfc5415d
  4. 1 5 ϝϦοτ ॊೈͳΧελϚΠζػೳ Connect ͷڧΈ͸ API ɻϓϥοτ ϑΥʔϜͷ࠷దͳΤΫεϖϦΤϯεΛσ βΠϯͰ͖·͢ɻϢʔβొ࿥ϑϩʔͷΧ

    ελϚΠζ΍ɺೖۚαΠΫϧͷઃఆɺෳ ࡶͳࢿۚҠಈͷΧελϚΠζॲཧɺ౷߹ ͞ΕͨܦཧϨϙʔςΟϯάػೳɻ ਝ଎ʹಋೖͰ͖Δ ϓϥοτϑΥʔϜͷͨΊͷܾࡁΠϯϑ ϥετϥΫνϟߏஙͰɺ͢Ͱʹ׬੒͞ Εͨ UI ཁૉΛऔΓೖΕͯɺϩʔϯνΛ εϐʔυΞοϓɺΦϖϨʔγϣϯΛγϯ ϓϧʹͰ͖·͢ɻ άϩʔόϧల։͠΍͍͢ ੈք 25ΧࠃҎ্ͷചΓख΁ࢧ෷͍Մ ೳɻϚʔέοτ͝ͱͷݱ஍ࢠձࣾ΍ ۜߦ࿈ܞ͸ඞཁ͋Γ·ͤΜɻෳࡶͳ ॲཧ͸ Connect ͕Ҿ͖ड͚·͢ɻ 1 2 3 https://stripe.com/connect
  5. શମͷΞʔΩςΫνϟ(̐ͭͷυϝΠϯผ) ϑϩϯτΤϯυ αʔόαΠυ blade MPAߏ੒ ϑϩϯτΤϯυ αʔόαΠυ SPAߏ੒ αʔόαΠυ ϑϩϯτΤϯυ

    αʔόαΠυ blade MPAߏ੒ ϫʔΧʔը໘ ΤʔδΣϯτը໘ اۀը໘ SPAߏ੒ ϑϩϯτΤϯυ ӡӦը໘ MPA SPA
  6. 3 3 ಋೖͯ͠Έͯؾ͍ͮͨ͜ͱ ϫʔΧʔͱͯ͠ ϩάΠϯ λυϥʔਃ੥ (1िؒఔ౓Ͱࣄ຿ہ ΑΓ৹ࠪ݁ՌΛϝʔ ϧ௨஌) ৼΓࠐΈޱ࠲ొ࿥

    ൃ஫اۀʹ૬ஊ͞ ΕͨҊ݅Λ ϫʔΧʔʹ঺հ STEP1 STEP2 STEP3 STEP4 01 02 03 04 ΤʔδΣϯτͷొ࿥ϑϩʔ͕௕ͯ͘཭୤͕ଟ͔ͬͨɻɻɻ