braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

Issue with ACH Payments #663

Closed robert-asystyou closed 1 year ago

robert-asystyou commented 1 year ago

General information

Issue description

I'm trying to accept ACH payments on my site. I've contacted Braintree Support and I have a Merchant Account in our Sandbox with USA Banks enabled. However, whenever I attempt to create an instance of the usBankAccount component, I get an error with the "US_BANK_ACCOUNT_NOT_ENABLED" code.

We have multiple merchant accounts and only one of them has USA Banks enabled. Not sure if that matters.

ibooker commented 1 year ago

Hi, We'll need more information to troubleshoot this issue, like a sample of your config and code you're using to create the usBankAccount component. Since this is a public forum, you may prefer to provide this to Braintree support instead.

Do you know if you've met all the requirements to accept ACH payments? Here's a link to our documentation.

You may want to confirm if the merchant for which you're trying to accept ACH payments is US-based.

rawanm900 commented 1 year ago

Hhhjj

robert-asystyou commented 1 year ago

Here's a snippet of the code that I'm using.

braintree.client.create(
{
  authorization: "our_sandbox_api_key",
}, function (clientErr, client) {
   if (clientErr) {
      console.log(clientErr);
      resolve({
          success: false,
          title: "Braintree Error",
          message: "Error connecting to Braintree.",
       });
       return;
     }

     braintree.usBankAccount.create(
       { client },
       function (usBankError, usBankInstance: USBankAccount) {
          if (usBankError) {
              // TODO: Handle Error Better.
              console.error(usBankError);
              resolve({
                 success: false,
                 title: "US Bank Error",
                 message: "There was an error with Braintree ACH Processing.",
               });
              return;
          }
          // use useBankInstance to tokenize payment input.
      }
    );
  }
);

The error occurs when calling usBankAccount.create. As you can see from the provided screenshot, we have a submerchant account with USA Banks enabled. We were ensured by Braintree that we were ready to accept ACH payments on both our sandbox and production accounts.

sandbox_merchant_accounts

hollabaq86 commented 1 year ago

Closing this issue, as this can ultimately only be solved by Technical Support.