Hello,
Everything works fine with sandbox ACH transactions. But, when I put in my production details appId and locationId I get an error.
“missing-credentials”
document.addEventListener('DOMContentLoaded', async function () {
if (!window.Square) {
throw new Error('Square.js failed to load properly');
}
let payments;
try {
console.log(appId);
console.log(locationId);
payments = window.Square.payments(appId, locationId);
} catch {
const statusContainer = document.getElementById(
'payment-status-container'
);
console.log('missing credentials')
statusContainer.className = 'missing-credentials';
statusContainer.style.visibility = 'visible';
return;
}
I double checked that the appId and locationId are correct.
Do I need to do something with OAuth first? I didn’t think I needed to.
Am I missing something? Or is there a bug?
Any help would be appreciated. Thanks!