Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
API to access autocomplete data
JavaScript
Branch: master

README

latest commit 5531353e54
@maccman authored
Failed to load latest commit information.
assets initial commit
client initial commit
lib initial commit
README.md README
about.html initial commit
icon.png initial commit
index.html initial commit
infobar.html initial commit
manifest.json initial commit
options.html initial commit

README.md

requestProfile

requestProfile is an API to access autocomplete data, to allow one-click signups and payment in the browser.

This Chrome extension is just a proof of concept, but the API looks like this:

navigator.requestProfile(profileTypes, success, error);

Then the browser pops open a permissions dialog and, if approved, invokes the callback function with the user's data.

Request Profile

You can specify data to be used in the extension's options:

Options

Example

var error = function(type){ /* ... */ };

var success = function(profile){
  Stripe.createToken({
    cardNumber: profile.cardNumber
  });
};

navigator.requestProfile(['firstName', 'lastName', 'cardNumber'], success, error);

Installing the extension

  1. git clone git://github.com/maccman/request-profile.git
  2. Go to Chrome -> Extensions, enter developer mode and Load unpacked extension.
  3. For an example, open index.html.
Something went wrong with that request. Please try again.