Make sure keys/development.js
and/or keys/production.js
is available.
npm install
gulp
npm install
gulp --production
My2c2p.submitForm(false, function (token) {
console.log('Encrypted card token: ', token);
}, function (errorCode, errorMessage) {
alert('error!');
}, {
cardnumber: "4111111111111111",
cvv: "000",
month: "1",
year: "2020"
});