Last active
August 26, 2016 22:48
-
-
Save darilldrems/e709fd2d58e143a5d5ea9d86c4573f43 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