I keep getting the error on mobile payments," Hashes not matching (code provided below)"
I have used the same cod exactly as in the docs
I am running version 1,0.9
I have tried new keys, new intergration to no avail.
indent preformatted text by 4 spaces
const { Paynow } = require(“paynow”);
let paynow = new Paynow(
process.env.INTEGRATION_ID,
process.env.INTEGRATION_KEY
);
const processPayment = (ecocashNumber, product, productPrice) => {
let payment = paynow.createPayment(“Invoice 1”, process.env.AUTH_EMAIL);
payment.add(“Bananas”, 2.5);
payment.add(“Apples”, 1.0);
paynow
.sendMobile(payment, 0777111111, “ecocash”)
.then(function (response) {
if (response.success) {
let instructions = response.instructions;
let pollUrl = response.pollUrl;
console.log(instructions);
} else {
console.log(response.error);
}
})
.catch((ex) => {
// Ahhhhhhhhhhhhhhh
// *freak out*
console.log("Your application has broken an axle", ex);
});
}
KINDLY ASSIST