ACH Payment Error - With Production Credentials


Everything works fine with sandbox ACH transactions. But, when I put in my production details appId and locationId I get an error.


document.addEventListener('DOMContentLoaded', async function () {
       if (!window.Square) {
           throw new Error('Square.js failed to load properly');

       let payments;
       try {
           payments = window.Square.payments(appId, locationId);
       } catch {
           const statusContainer = document.getElementById(
           console.log('missing credentials')
           statusContainer.className = 'missing-credentials';
  = 'visible';

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!

As log as all the credentials are set to production there shouldn’t be any additional configurations. Whats your application ID?


Is it possible I should just create a new app with new credentials?

It turns out I missed this javascript link

<script type="text/javascript" src=""></script>

Glad to hear that you figured it out. :slightly_smiling_face: