Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
StripeCheckoutとAuth0でECサイトを作ってみた
Search
Takayuki
May 27, 2019
2
880
StripeCheckoutとAuth0でECサイトを作ってみた
StripeCheckoutとAuth0でECサイトを作ってみた
Takayuki
May 27, 2019
Tweet
Share
More Decks by Takayuki
See All by Takayuki
エンジニアのキャリア論
bumptakayuki
0
110
地方カンファレンス主催のススメ
bumptakayuki
1
150
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
1
750
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
0
520
沖縄観光、名物を一挙紹介!
bumptakayuki
2
530
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
1
1.7k
flutterでイベントアプリを作ってみた
bumptakayuki
0
110
オフショア開発の辛みと学んだ事
bumptakayuki
0
340
ChatGPTにStripeのサンプルコードを書かせてみた
bumptakayuki
1
160
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
136
6.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Building Adaptive Systems
keathley
38
2.2k
The Cost Of JavaScript in 2023
addyosmani
45
6.6k
The Pragmatic Product Professional
lauravandoore
31
6.3k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.9k
Unsuck your backbone
ammeep
668
57k
YesSQL, Process and Tooling at Scale
rocio
167
14k
4 Signs Your Business is Dying
shpigford
180
21k
Building Your Own Lightsaber
phodgson
102
6k
Making Projects Easy
brettharned
115
5.9k
Transcript
Stripe CheckoutͱAuth0で ECαΠτΛ࡞ͬͯΈͨ
3 Stripe Checkoutͷಋೖํ๏ Agenda 2 Auth0ͱ 1 ࣗݾհ 4 Demo
1 ࣗݾհ
4 ࣗݾհ ◆໊લ ླ ೭(Suzuki Takayuki) ◆ࣗݾհ ɾ1990ɺਆಸݝੜ·Εɻ ɾࣾձਓʹͳ͔ͬͯΒɺϓϩάϥϛϯάΛ࢝ΊΔɻ ɾ2015ʹϑϧεϐʔυʹೖࣾ͠ɺ2017ʹϑϦʔϥ
ϯεΛͬͨޙʹ201711݄ʹԭೄͰىۀɻ ◆झຯ ίεϓϨɺԻָϥΠϒɺϚϥιϯେձʹग़Δɺٿ؍ ઓ ◆Twitter @kanbo0605
Copyright Re:Build.inc All Rights Reserved. 1.ձࣾհ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝԭೄࢢதԝ̍ஸ̍̒−̕
◆ࣄۀ༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 5໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪͯ͠·͢ʂ
2 Auth0ͱ
7 Auth0ͱ ɾ֓ཁ Auth0WebΞϓϦϞόΠϧɺAPIͳͲ ʹରͯ͠ೝূɾೝՄͷαʔϏεΛΫϥυ Ͱఏڙ͍ͯ͠Δɺ͍ΘΏΔIDaaS (Identity as a Service)ϕϯμʔͰ͢ɻ
ɾΦεεϝͷํ اۀ͕ͭWebΞϓϦέʔγϣϯAPI, Native Mobile AppͳͲͰϢʔβʔೝূ ೝՄɺηΩϡϦςΟΛΈࠐΈ͍͚ͨΕ Ͳ࣮͕͍͠ɻ https://qiita.com/furuth/items/8826b66a3ec2b2b14222
8 ֤ݴޠ͝ͱͰνϡʔ τϦΞϧ͕ॆ࣮ͯ͠ ͓Γɺ؆୯ʹಋೖͰ ͖·͢ɻ ओཁͳSNSͱ΄ͱΜͲ࿈ ܞ͓ͯ͠Γɺ࿈ܞํ๏ ؆୯ͰศརͰ͢ɻ WebΞϓϦɺSPAΞϓϦωΠ ςΟϒΞϓϦͳͲʹ࿈ܞͰ
͖ͯɺϢʔβใΛҰݩཧ Ͱ͖Δɻ ؆୯ʹಋೖͰ͖Δ ϢʔβೝূΛҰݩཧͰ ͖Δ ϝϦοτɾಛ ๛ͳ࿈ܞઌ 2 ʙϝϦοτʙ 1 3
9 ๛ͳ࿈ܞઌ Auth0ͱ
1 0 ϢʔβΛҰݩཧ Auth0ͱ
11 ෳͷσόΠεʹରԠ Auth0ͱ
1 2 ྉۚମܥ https://auth0.com/pricing
3 Stripe Checkoutͷಋೖํ๏
ΞϓϦέʔγϣϯ ϩάΠϯ͔Βܾࡁ·ͰͷྲྀΕ /index TOPϖʔδ ৄࡉϖʔδભҠ ࣌ʹϩάΠϯ ϩάΠϯޭͨ͠Β ηογϣϯLaravelଆ Ͱཧ ೝূ
ܾࡁ ߪೖ͔Βܾࡁը໘
1 5 Stripe Checkoutͷಋೖํ๏ ᶃStripeͷཧը໘ͰΛొ ᶄSKUίʔυΛऔಘ ᶅSKUίʔυΛDBͷςʔϒϧʹొ ᶆbladeϑΝΠϧ࡞
1 6 ᶃStripeͷཧը໘ͰΛొ
1 7 ᶃStripeͷཧը໘ͰΛొ
1 8 ᶄSKUίʔυΛऔಘ
1 9 ᶅSKUίʔυΛDBͷςʔϒϧʹొ SeederͰDBʹSKUίʔυΛొ͢Δ
2 0 ᶆbladeϑΝΠϧ࡞ show.blade.phpʹԼهͷίʔυΛೖΕΔɻ ֤ͷSKUίʔυDBͷςʔϒϧʹอଘ͓ͯ͘͠
2 1 app.blade.phpʹStripeͷscriptλάΛຒΊࠐΉ ᶆbladeϑΝΠϧ࡞
WWW.SITE2MAX.PRO Free PowerPoint & KeyNote Templates 4 DEMO EC Site
EC Site https://murmuring-tor-53965.herokuapp.com/
2 3 ࣮ࡍʹಈ͔͢
2 4 ࣮ࡍʹಈ͔͢
2 5 ࣮ࡍʹಈ͔͢
2 6 ࣮ࡍʹಈ͔͢
2 7 ࣮ࡍʹಈ͔͢
2 8 ࣮ͯ͠Έͨײ ɾ࣮͕͘͢͝؆୯ʹͰ͖ͨ(2͘Β͍ͰECαΠτ͕) ɾϩάΠϯϢʔβʹΑͬͯݖݶ͚ͨΓͱ͔ɺෳࡶͳ͜ͱ Ζ͏ͱͨ࣌͠ʹগ͠େมͦ͏ɻ ɾҰɺ࣮ͯ͠͠·͑ɺSNSͷ࿈ܞઌ૿͢ͷϘλϯ Λϙνϙν͢Δ͚ͩͰOKʂ
2 9 ࢀߟ https://qiita.com/furuth/items/8826b66a3ec2b2b14222 https://dev.classmethod.jp/cloud/auth0-overview/ https://www.hypertextcandy.com/laravel-tried-auth0
3 0 ࠂ JP_Stripesԭೄ ։࠵ʂ 7/5 Meetup --> 7/6 BBQ
3 1 ࠂ https://phpcon.okinawa.jp/ 2019/10/12()ʹԭೄͰPHPΧϯϑΝϨϯεΛ։࠵͠·͢ʂʂʂ ͥͻདྷ͍ͯͩ͘͞ʂ