durango / authorize-net-cim

Authorize.net CIM bindings for Node.JS
14 stars 5 forks source link

Add getHostedProfilePageRequest #19

Closed thgaskell closed 8 years ago

thgaskell commented 8 years ago

Closes #11.

Adds functionality to fetch a hosted token using the added HostedProfilePage type from durango/authorize-net-types#5.

This feature allows you to fetch a token needed to use hosted forms with AuthorizeNet.

Example usage:

AuthNetCIM.getHostedProfilePageRequest({ customerProfileId: 123 }, function (err, res) {
  if (err) throw err;
  // Access token with res.token
});
durango commented 8 years ago

Don't want to be picky as this PR is great work :+1: any chance we can remove the console.logs within the test scripts?

thgaskell commented 8 years ago

Woops! Forgot to clean up :shirt: