Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iykedapotential/d0061336f90c4e62687975b2f1f88a0f to your computer and use it in GitHub Desktop.
Save iykedapotential/d0061336f90c4e62687975b2f1f88a0f 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