Slide 1

Slide 1 text

Web Payments Turbocharging mobile commerce through native browser APIs Jeff Carpenter – @jcarp

Slide 2

Slide 2 text

Who is this And why are they up here Jeff Carpenter Software Engineer Google Chrome (Please note: I am not speaking on behalf of Google) Formerly at Braintree Payments

Slide 3

Slide 3 text

Let’s go on a journey… a mobile commerce journey...

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Let's fix it

Slide 7

Slide 7 text

Slide 8

Slide 8 text

But what about PCI compliance?

Slide 9

Slide 9 text

How about client-side validation?

Slide 10

Slide 10 text

What about supporting different payment methods?

Slide 11

Slide 11 text

Everyone does this

Slide 12

Slide 12 text

Everyone does this in a different way

Slide 13

Slide 13 text

Everyone does this in a different way on mobile

Slide 14

Slide 14 text

More users are buying on mobile...

Slide 15

Slide 15 text

...but mobile conversion is much lower

Slide 16

Slide 16 text

Checkout on mobile web has a UX problem

Slide 17

Slide 17 text

Most frustrating aspects of mobile checkout ● Small screen size ● Entering card information ○ Need to enter for each merchant ● Heterogeneity

Slide 18

Slide 18 text

Most frustrating aspects of mobile checkout ● Small screen size ● Entering card information ○ Need to enter for each merchant ● Heterogeneity

Slide 19

Slide 19 text

Browsers can already store your credit card

Slide 20

Slide 20 text

Solution: native payment APIs for web

Slide 21

Slide 21 text

I’m excited about web payments because I don’t like entering my credit card 1000 times

Slide 22

Slide 22 text

I'm even more excited about web payments because I'm lazy

Slide 23

Slide 23 text

2016 has seen two native APIs emerge PaymentRequest Google I/O May 2016 Safari Apple Pay WWDC June 2016

Slide 24

Slide 24 text

PaymentRequest

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

var instruments = [ { supportedMethods: [ 'amex', 'mastercard', 'Visa' ] } ]

Slide 27

Slide 27 text

var details = { total: { label: 'Donation', amount: {currency: 'USD', value: '55.00'} }, displayItems: [{ label: 'CatDog', amount: { currency: 'USD', value: '65.00' } }] }

Slide 28

Slide 28 text

new PaymentRequest(instruments, details).show() .then(instrumentResponse => { console.log(instrumentResponse.details) // Spinner is shown to customer // as you complete transaction // with your back-end instrumentResponse.complete() } )

Slide 29

Slide 29 text

{ methodName: 'visa', details: { cardHolderName: 'Jane Smith', cardNumber: '4111111111111111', expiryMonth: '01', expiryYear: '2021', cardSecurityCode: '123' } }

Slide 30

Slide 30 text

Try it yourself! Chrome 53, Android only ● Demo pages ○ https://googlechrome.github.io/samples/paymentrequest/ ● Integration guide ● https://developers.google.com/web/fundamentals/primers/payment- request/?hl=en

Slide 31

Slide 31 text

When will PaymentRequest be available? ● Available for credit cards now in Chrome 53! ● Android Pay late 2016 ● 3rd party apps 2017

Slide 32

Slide 32 text

When will PaymentRequest be in all browsers?

Slide 33

Slide 33 text

Mozilla Firefox PaymentRequest in development

Slide 34

Slide 34 text

Microsoft Edge PaymentRequest in development

Slide 35

Slide 35 text

Safari Apple Pay in macOS Sierra and iOS 10 Intent to implement PaymentRequest

Slide 36

Slide 36 text

Apple Pay in Safari

Slide 37

Slide 37 text

Apple Pay Payment Processing Certificate Apple Pay Merchant Identity Certificate

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

if (window.ApplePaySession) { var merchantId = 'com.dogs’ ApplePaySession .canMakePaymentsWithActiveCard(merchantId) .then(function (canMakePayments) { if (canMakePayments) { // show Apple Pay buttons } }) }

Slide 40

Slide 40 text

var options = { currencyCode: 'USD', countryCode: 'US', total: { label: 'Canine Clothing', amount: '19.99' }, supportedNetworks: ['amex', 'masterCard'] };

Slide 41

Slide 41 text

var session $('.apple-pay-button').on('click', function () { session = new ApplePaySession(1, options) })

Slide 42

Slide 42 text

Confirmation pops up on your phone

Slide 43

Slide 43 text

session.onvalidatemerchant = (event) => { // Send event.validationURL to your server // Start merchant session by // calling Apple’s servers // with two-way TLS (using merchant // validation certificate) }

Slide 44

Slide 44 text

PCI Compliance

Slide 45

Slide 45 text

PCI Compliance estimates Raw PaymentRequest: SAQ A-EP Via a payment gateway (if supported): SAQ A-EP Android Pay & Apple Pay: SAQ A

Slide 46

Slide 46 text

SAQ A ● SAQ A for raw PANs may not be possible even with gateway support ● W3C spec in development ● Feature Policy ●

Slide 47

Slide 47 text

Realistic timeline ● Realistically given PCI compliance and browser development timelines, my wildly speculative estimate is mid to late 2017

Slide 48

Slide 48 text

Web payments is a win-win for (almost) everyone in the value chain

Slide 49

Slide 49 text

Merchants Upside: potentially more card volume Downside: might require engineering resources to implement (based on how they accept payments)

Slide 50

Slide 50 text

Payment Gateways Upside: potentially more card volume Downside: engineering resources to implement

Slide 51

Slide 51 text

Acquiring banks & Card Networks Upside: potentially more card volume Upside: no change to existing payment rails

Slide 52

Slide 52 text

JavaScript library authors Downside: card formatting and validation no longer handled by JavaScript

Slide 53

Slide 53 text

PayPal Has always been a simpler and safer alternative to entering credit cards. Are web payments a threat to one of PayPal’s value props?

Slide 54

Slide 54 text

W3C Specs ● Payment Request API ○ Payment Method Identifiers (e.g. the string ‘visa’) ○ Basic Card Payment (credit card schema) ● Start here: ○ https://github.com/w3c/webpayments/wiki/PaymentRequestFAQ

Slide 55

Slide 55 text

Learning more ● Good explanation of W3C rationale: ○ https://www.w3.org/Payments/ ● Bringing seamless checkouts to the mobile web - Google I/O 2016 ○ https://www.youtube.com/watch?v=yelPlCVZLEE ● Apple Pay WWDC talk ○ https://developer.apple.com/videos/play/wwdc2016/703/

Slide 56

Slide 56 text

Thank You Comments - Questions - Tomatoes - @jcarp Special thanks to: ● Elliot Lee, Braintree ● Zach Koch, Google Chrome

Slide 57

Slide 57 text

Resources https://github.com/alrra/browser-logos/ The collective pug owners of the internet