Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ApplePay対応サービスを最速で作る
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mamoru Amano
March 13, 2018
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ApplePay対応サービスを最速で作る
http://eventregist.com/e/JPStripes_Tokyo6
の発表スライドです。
Mamoru Amano
March 13, 2018
More Decks by Mamoru Amano
See All by Mamoru Amano
新規サービス立ち上げ時の仮説検証とチームビルディング
mamoru0217
5
1k
フロントエンドの エラー周りで最近知ったこと
mamoru0217
0
190
Wantedly - 管理画面チラ見せ♡ナイト #3 発表資料
mamoru0217
5
11k
Other Decks in Programming
See All in Programming
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
580
Security issues being discussed on Web Platforms
petamoriken
0
1.4k
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
200
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.5k
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
160
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
710
すこし踏み込む CancellationToken
htkym
2
1.6k
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.5k
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
130
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
340
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
350
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
RailsConf 2023
tenderlove
30
1.6k
Chasing Engaging Ingredients in Design
codingconduct
0
340
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Raft: Consensus for Rubyists
vanstee
142
7.7k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
460
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
540
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
The Language of Interfaces
destraynor
162
27k
BBQ
matthewcrist
90
10k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Transcript
+1@4USJQFT5PLZP7PM ఱѮ.BNPSV"NBOP "QQMF1BZରԠαʔϏεΛ ࠷Ͱ࡞ΔͨΊʹͲ͏͢Ε͍͍͔
ϓϩϑΟʔϧ w 8FCΤϯδχΞʢ3BJMT3FBDUʣ!גࣜձࣾΞΧπΩ w ৽نαʔϏε։ൃ w UXJUUFS!NVUBDIJJ
ಥવͰ͕͢
+0:.0 wIUUQTKPZNPIFSPLVBQQDPN w݅ʹϚον͓ͨ͠Ͱ͔͚ϓϥϯΛ ͭఏҊ͢ΔαʔϏε w"QQMF1BZରԠΫϨδοτܾࡁ
ѹత.71
৽نαʔϏε։ൃ w ͜ͷιϦϡʔγϣϯʹ͓ۚΛͬͯ͘ΕΔ͔ʁ w ࣄલʹݕূ͍ͯ͠Δ͕ɺݱ࣮Θ͔Βͳ͍ɻ.71ʹ࣮ࡍʹ͓ۚΛͬ ͯΒ͑Δ͔Ͳ͏͔͕େࣄɻ w ελʔτΞοϓʢ͡Όͳ͍͚ͲʣʹͱͬͯҰ൪وॏͳࢿݯ࣌ؒ w ૉૣ͘ɾָʹ࣮͍ͨ͠
4USJQFͷ͍Ͳ͜Ζʂ
࣭ "QQMF1BZରԠαʔϏεΛ ࠷Ͱ࡞ΔͨΊʹͲ͏͢Ε ͍͍͔
ճ 4USJQFΛ͏
"QQMF1BZ •Touch ID / Face ID Ͱ؆୯ʹܾࡁ͕ߦ͑Δɻ •ϝʔϧΞυϨεͷೖྗͱ͔ෆཁ •Ϙλϯ͕ஔ͍ͯ͋Δͱخ͍͠ɻͦͷαʔϏε͕͖ʹͳΔɻ
1BZNFOU3FRVFTU#VUUPO var stripe = Stripe(gon.stripe_public_key); var paymentRequest = stripe.paymentRequest({ country:
'JP', currency: 'jpy', total: { label: ‘JOYMO ͝ར༻ྉۚ’, amount: 300 } }); var elements = stripe.elements(); var prButton = elements.create('paymentRequestButton', { paymentRequest: paymentRequest, }); paymentRequest.canMakePayment().then(function(result) { if (result) { prButton.mount('#payment-request-button'); } else { document.querySelector(‘.payment-request-button-wrapper') .innerText = ‘͝ར༻ͷͰApple PayΛ͝ར༻͍ͨͩ͘͜ͱग़དྷ·ͤΜɻ'; } }); a͜ΕͰग़Δʂ
1BZNFOU3FRVFTU#VUUPO paymentRequest.on('token', function(e) { var tokenInput = document.getElementById('stripeToken') tokenInput.value =
e.token.id form.submit() }); UPLFOΛಘͨΒϑΥʔϜΛTVCNJU͢Δɻ
"QQMF1BZ·ΘΓͷ w ϩʔΧϧڥͰಈ࡞֬ೝ͢Δ࣌OHSPLΛ͏ɻ w "QQMF1BZར༻ͷͨΊʹɺར༻͢ΔϗετΛొ͢Δඞཁ͕͋Δɻ w ϗετΛຖճొ͢͠ͷ͕গ͠໘ʜ w "QQMF1BZϘλϯ͕දࣔ͞Ε͍ͯͯɺ8FCܾࡁະରԠͰܾࡁͰ͖ͳ͍
߹͕͋Δɻ w ެࣜͷࡌ͍ͬͯΔରԠΧʔυҰཡ࣮֬ʹ͑Δ͚ͣͩͲɺͦΕҎ֎ ͷΧʔυ͕͑Δ͔Ͳ͏͔͕Θ͔ΒΜ
͍͞͝ʹ w ࣮ͪΖΜɺຊ൪ར༻৹ࠪ΄΅ϊʔλΠϜͳͷͰɺεϐʔυΛམͱ ͞ͳ͍։ൃΛ࣮ݱͰ͖ͨʂ w υΩϡϝϯτͷʢίϐϖϏϦςΟʣμογϡϘʔυͷݟ͢͞ͳ ͲɺͲ͜Λͱͬͯຊʹ։ൃऀϑϨϯυϦʔ w 4USJQF͓͏ʂ