0👍
According to the example here it appears you should be using the ePayco.token.create()
function a bit differently.
epayco.token.create(paymentDetails)
.then(function(token) {
console.log(token);
})
.catch(function(err) {
console.log("err: " + err);
});
Source:stackexchange.com