I had a running sandbox environment and once I tried to go to production, even after changing everything correctly I was still getting some errors. It is a node.js express app. Can someone tell me how to fix these?
Thank you very much!
Looks like your application of the Web Payments SDK is a MIME which isn’t supported. How are you wanting to implement the Web Payments SDK.
I am using ejs as my view engine. I created the file card.html and then i include it on the checkout page to show the card.
const appId = ""; const locationId = "L6WB1C6A64GWE";const Data = async () => {
const res = await axios.get("/checkoutdata");
const data = res.data;
console.log(data);
return data;
};
async function initializeCard(payments) {
const card = await payments.card();
await card.attach("#card-container");
return card;
}
async function initializeGiftCard(payments) {
const giftCard = await payments.giftCard();
await giftCard.attach("#gift-card-container");
return giftCard;
}
It was working perfectly fine in when I was in sandbox env