Forked from darilldrems/pwc-example-authentication-node.js
Created
August 26, 2016 22:48
-
-
Save iykedapotential/d0061336f90c4e62687975b2f1f88a0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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