web payments
Post on 25-Jun-2015
161 Views
Preview:
TRANSCRIPT
Daniel Davis
@ourmaninjapan
bit.ly/webpayments
Payments on the
Open Web Platform
In China
2/3of internet access
is mobile
www.chinainternetwatch.com/whitepaper/china-internet-statistics
www.bcg.com/media/PressReleaseDetails.aspx?id=tcm:12-103641
Chinese users spend
1 hour/daymore on the internet
than U.S. users
How to avoid this?How to avoid this?
twitter.com/scottjenson/status/347729021431324672
Multi-device
Multi-platform
What aboutWhat about
paymentspayments??
Web app stores
Firefox OS
Tizen
Ubuntu Mobile
etc.
Premium content (1)
→
Premium content (2)
←
→
Payment APIs
Facebook Credits
AT&T Payment API
Google Wallet
MozPay
etc.
Example (MozPay)
Buyer logs in with Mozilla Persona
↓
Buyer enters PIN
↓Purchase is charged to phone bill
or credit card
BUT!
Restricted by:
vendor
operator
platform
In the future...In the future...
W3C Web Payment API
1) Send JWT payment request
2) Call payment method, e.g. navigator.pay()
3) Secure channel created with payment provider
4) Buyer is authenticated
5) Buyer approves purchase
6) App receives success/fail JS callback
N.b. Rough initial concept – likely to change
JSON Web Token (JWT) example
paymentJWT = jwt.encode({ "iss": APPLICATION_KEY, "aud": "marketplace.firefox.com", "typ": "mozilla/payments/pay/v1", "iat": 1337357297, "exp": 1337360897, "request": { "id": "915c07fc-87df-46e5-9513-45cb6e504e39", "pricePoint": 1, "postbackURL": "https://yourapp.com/payments/postback", "chargebackURL": "https://yourapp.com/payments/chargeback", # Other app metadata }}, APPLICATION_SECRET)
Source: wiki.mozilla.org/WebAPI/WebPayment
What else?What else?
Tools...Tools...
AdobeAdobe
Intel XDKIntel XDK
WozllaWozlla
etc.etc.
...and you...and you
w3.org/html/ig/zhw3.org/html/ig/zh
w3.org/wiki/Payments_Task_Forcew3.org/wiki/Payments_Task_Force
Daniel Davis
@ourmaninjapan
bit.ly/webpayments
Payments on the
Open Web Platform
top related