Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

API to access autocomplete data

branch: master
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.