Skip to content

Instantly share code, notes, and snippets.

@darilldrems
Last active August 26, 2016 22:48
Show Gist options
  • Save darilldrems/e709fd2d58e143a5d5ea9d86c4573f43 to your computer and use it in GitHub Desktop.
Save darilldrems/e709fd2d58e143a5d5ea9d86c4573f43 to your computer and use it in GitHub Desktop.
var PayWithCapture = require('PayWithCapture');
var clientId = "636yertryrury", //your client id is in PwC devcenter
clientSecret = "76474hrhryre7437433yg3y3uy3yugregregr37464t4g45"; //your client secret in in Pwc devcenter account
var client = new PayWithCapture(clientId, clientSecret, "staging");
var Authentication = client.getAuthenticationClient();
new Authentication().authenticate()
.then(function(authResp) {
//do what ever you need with the authResp
//you can do JSON.stringify to inspect the object
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment