get https://api.processout.com/customers//tokens/
You can fetch a Token
object using its id
value. See the section about fetching resources for more information.
Responses
You can fetch a Token
object using its id
value. See the section about fetching resources for more information.
xxxxxxxxxx
14var ProcessOut = require("processout");
var client = new ProcessOut(
"test-proj_gAO1Uu0ysZJvDuUpOGPkUBeE3pGalk3x",
"key_sandbox_mah31RDFqcDxmaS7MvhDbJfDJvjtsFTB");
client.newToken().find("cust_WtaVdUjAGpOlbLiYWYXBR67whr91Rlks",
"tok_fKK4btSG7wd13ZZaevzhMcuNbpjcu1Zy").then(
function(token) {
// And let's say our customer wants to remove its token
token.delete();
}, function(err) {
// The customer's token could not be fetched
});