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
Stripe Payment Linksを使ってみてオフライン体験も考えてみた
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Satoshi7
November 01, 2019
48
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stripe Payment Linksを使ってみてオフライン体験も考えてみた
Satoshi7
November 01, 2019
More Decks by Satoshi7
See All by Satoshi7
Classmethod Company Deck
satoshi7
1
780
AI駆動開発の成功と失敗 クラスメソッドの実践事例集
satoshi7
3
2.1k
就職せずに自己資本でクラスメソッドを起業して21年掛けて年商950億円になった話
satoshi7
60
62k
ファクトリークリエイティブキャンプ 製造業におけるクラウド・生成AI・IoT活用の現在地と未来展望
satoshi7
1
750
Classmethod Transformation
satoshi7
0
760
Classmethod Introduction
satoshi7
8
8.5k
re:Inventの10年を振り返る -カルチャーとビジョン-
satoshi7
2
280
Building a smart store using sensors, devices and virtual space.
satoshi7
1
420
16年掛けて年商200億円になった話
satoshi7
4
12k
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
The untapped power of vector embeddings
frankvandijk
2
1.9k
New Earth Scene 8
popppiees
4
2.7k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
610
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
540
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Balancing Empowerment & Direction
lara
6
1.3k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
500
Transcript
1
2 Stripe Payment Links 使ってみた
横⽥聡 クラスメソッド株式会社 代表取締役 経歴 クラスメソッド株式会社、創業して17年、国内外に10法⼈ 主な業務 事業会社向けにクラウドやモバイルなどの技術⽀援 コミュニティ Java、Flex、AWS、SORACOM、Stripe メディア運営
DevelopersIO、Zenn 研究開発 デバイス開発、レジレスキャッシュレス店舗、 コンピュータビジョン、センサーフュージョン ソーシャル Facebook /satoshi7、Twitter @sato_shi
4 Stripe Payment Links やってみた 画⾯ポチポチ (ノーコード) https://dev.classmethod.jp/articles/stripe-payment-links-qrcode/
5 オフラインの体験も Stripe Payment Linksでオンライン体験 これをオフラインにも対応してみる - 店舗で購⼊して⾃宅に配送 -
6 いろいろ設定できる
7 サブスクの体験も Stripe Payment Linksでサブスク体験 これをオフラインにも対応してみる - 店舗で加⼊してサブスク開始 -
8 URLからQRコード画像を⽣成する(Python) from urllib.parse import urlparse, parse_qs from http.server import
HTTPServer, BaseHTTPRequestHandler from io import BytesIO import sys import qrcode class class1(BaseHTTPRequestHandler): def do_GET(self): parsed = urlparse(self.path) params = parse_qs(parsed.query) target = params.get('url','#') qr = qrcode.make(target) img_bytes = BytesIO() qr.save(img_bytes, format='PNG') img_bytes = img_bytes.getvalue() self.send_response(200) self.send_header('Content-type','image/png') self.end_headers() self.wfile.write(img_bytes) ip = '127.0.0.1' port = 8080 server = HTTPServer((ip, port), class1) server.serve_forever()
http://localhost:8080/?url=https://buy.stripe.co m/test_14kaH4dVa3vf3EA6oq 9 スマホのカメラでQRコードを読み取る
10 TIPS 総額表⽰義務化に伴い Payment Links内で 消費税別の商品は作れない
11 ⼿数料の例(Stripe Billing(サブスク)を使った場合) 商品の⾦額 ︓11,000円(税込み) 決済⼿数料 ︓396円(3.6%)※クレカ決済⼿数料は⾮課税 純売上 ︓10,604円 Billing⼿数料︓55円(0.5%)
Billing⼿数料の消費税︓6円 ※5.5円の四捨五⼊ 銀⾏に振り込まれる⾦額 11,000 – 396 – 55 – 6 = 10,543円 ※前受消費税1,000円、仮払い消費税6円
12 TIPS APIでPayment LinksのURLを作りたい 今はできない (ノーコードと⽭盾w)
13