- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Sun, 17 Jun 2012 00:04:01 +0200
- To: Web Payments <public-webpayments@w3.org>
Received on Saturday, 16 June 2012 22:04:30 UTC
---------- Forwarded message ---------- From: Alex MacCaw <maccman@gmail.com> Date: 16 June 2012 06:05 Subject: Browser Payments API proposal To: public-webapps@w3.org I've been working on a way of integrating one-click payments (and signup) into the browser, and I wanted to put it in front of a few people to get some feedback. The API I was playing about with was pretty simple, and is documented here: http://blog.alexmaccaw.com/preview/MjQxMDcwOTcwNjAYz14YvbdZWrrVg It's basically an API to autocomplete data, already stored in the browser and containing things like credit card number and name. For example: navigator.requestProfile(['firstName', 'email', 'cardNumber'], function( profile){ console.log('Your name is:', profile.firstName); /* ... */ }); I've also created a Chrome extension<https://github.com/maccman/request-profile> demonstrating the API. I think the key thing to getting adoption for something like this is to keep it really simple. Cheers, Alex -- Alex MacCaw +12147175129 @maccman http://alexmaccaw.com
Received on Saturday, 16 June 2012 22:04:30 UTC