web payments

24
Daniel Davis @ourmaninjapan bit.ly/webpayments Payments on the Open Web Platform

Upload: ourmaninjapan

Post on 25-Jun-2015

159 views

Category:

Economy & Finance


0 download

TRANSCRIPT

Page 1: Web payments

Daniel Davis

@ourmaninjapan

bit.ly/webpayments

Payments on the

Open Web Platform

Page 2: Web payments
Page 3: Web payments
Page 4: Web payments

In China

2/3of internet access

is mobile

www.chinainternetwatch.com/whitepaper/china-internet-statistics

Page 5: Web payments

www.bcg.com/media/PressReleaseDetails.aspx?id=tcm:12-103641

Chinese users spend

1 hour/daymore on the internet

than U.S. users

Page 6: Web payments

How to avoid this?How to avoid this?

twitter.com/scottjenson/status/347729021431324672

Page 7: Web payments
Page 8: Web payments

Multi-device

Page 9: Web payments

Multi-platform

Page 10: Web payments
Page 11: Web payments

What aboutWhat about

paymentspayments??

Page 12: Web payments

Web app stores

Firefox OS

Tizen

Ubuntu Mobile

etc.

Page 13: Web payments

Premium content (1)

Page 14: Web payments

Premium content (2)

Page 15: Web payments

Payment APIs

Facebook Credits

AT&T Payment API

Google Wallet

MozPay

etc.

Page 16: Web payments

Example (MozPay)

Buyer logs in with Mozilla Persona

Buyer enters PIN

↓Purchase is charged to phone bill

or credit card

Page 17: Web payments

BUT!

Restricted by:

vendor

operator

platform

Page 18: Web payments

In the future...In the future...

Page 19: Web payments

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

Page 20: Web payments

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

Page 21: Web payments

What else?What else?

Page 22: Web payments

Tools...Tools...

AdobeAdobe

Intel XDKIntel XDK

WozllaWozlla

etc.etc.

Page 23: Web payments

...and you...and you

w3.org/html/ig/zhw3.org/html/ig/zh

w3.org/wiki/Payments_Task_Forcew3.org/wiki/Payments_Task_Force

Page 24: Web payments

Daniel Davis

@ourmaninjapan

bit.ly/webpayments

Payments on the

Open Web Platform