# Web Payments SDK — ACH RECURRING\_CHARGE always returns UnexpectedError (sandbox)

**URL:** <https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983>\
**Category:** Questions\
**Created:** [September 24, 2026, 5:48pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983 "2026-09-24T17:48:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![devagenttech](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@devagenttech](https://developer.squareup.com/forums/u/devagenttech)\
**Post date:** [September 24, 2026, 5:48pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/1 "2026-09-24T17:48:51Z")

</div>

We’re adding recurring ACH (bank on file) with the Web Payments SDK in **sandbox**. Every `RECURRING_CHARGE` tokenization fails with `UnexpectedError` (“An unexpected error occurred while authorizing the payment.”). `event.detail.error` is:

```auto
{"errors":[],"name":"UnexpectedError"}

```

**Setup:** sandbox, Web Payments SDK 1.85.0 (sandbox CDN), location `LHHQFTBYJC0X0`.

- `STORE` works: `ach.tokenize({ intent: 'STORE', accountHolderName })` through Plaid (First Platypus Bank, `user_good`) → CreateBankAccount → `bact:2GVUNXJzbzCKWtRv3GB`, status `VERIFIED`, debitable, on customer `2EB22S8MD76ATQBACSFJ1Q1J88`.
- A one-off `ach.tokenize({ intent: 'CHARGE', bankAccountId, amount, currency })` on the same account proceeds normally.
- Every `RECURRING_CHARGE` fails identically:

```js
// variable amount
{ intent: 'RECURRING_CHARGE', bankAccountId, startDate: '2026-10-01',
  frequency: { monthly: { days: { daysOfMonth: [1] } } }, variableAmount: true }
// fixed amount: same result
{ ..., amount: '869.53', currency: 'USD' }
// daily, as in the docs: same result
{ ..., frequency: { days: 30 } }

```

Weekly frequency, and a `startDate` of today or tomorrow, fail the same way.

- The Application ID and access token belong to the same application. The sandbox personal access token (regenerated today) has `BANK_ACCOUNTS_READ` but not `BANK_ACCOUNTS_WRITE`, which the bank-on-file guide lists as required.

**Questions**

1. Is `RECURRING_CHARGE` available in sandbox, and does it need enabling for our application or seller account?
2. Does it require `BANK_ACCOUNTS_WRITE`, and if so, how do we obtain it? Personal access tokens don’t include it; is OAuth required?
3. Is anything else required that isn’t in the docs?

---

<div class="post-metadata">

**Author:** ![jaeha](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jaeha](https://developer.squareup.com/forums/u/jaeha)\
**Post date:** [September 25, 2026, 9:14pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/3 "2026-09-25T21:14:39Z")

</div>

Welcome to the Developer Forum!

We’d have to whitelist your app id for `RECURRING_CHARGE`. Would you please provide the application id so that I can go ahead and enable it for you?

---

<div class="post-metadata">

**Author:** ![devagenttech](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@devagenttech](https://developer.squareup.com/forums/u/devagenttech)\
**Post date:** [September 25, 2026, 9:41pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/4 "2026-09-25T21:41:36Z")

</div>

Thanks, jaeha! Here are both of our application IDs:

- Sandbox: `sandbox-sq0idb-u9MeKF6V5tUsHHd86DwDMg`
- Production: `sq0idp-IzhluGWksWAMCsQgeMVRZw`  
We’re using the Web Payments SDK ACH form with `intent: "RECURRING_CHARGE"` and `variableAmount: true`, for monthly tuition autopay by bank transfer. Could you enable it on both, so we can test in sandbox and then go live? Also, is there anything else the production account needs for ACH recurring charges, beyond finishing payment activation?

---

<div class="post-metadata">

**Author:** ![jaeha](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jaeha](https://developer.squareup.com/forums/u/jaeha)\
**Post date:** [September 25, 2026, 10:09pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/5 "2026-09-25T22:09:23Z")

</div>

Happy to help here.

I just enabled both prod and sandbox for ‘fixed recurring auth’ so you should be able to test it with `RECURRING_CHARGE` with no issues. ‘variable recurring auth’ would require additional risk review before I can enable it. Would you really need this or would ‘fixed recurring auth’ suffice for you?

---

<div class="post-metadata">

**Author:** ![devagenttech](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@devagenttech](https://developer.squareup.com/forums/u/devagenttech)\
**Post date:** [September 26, 2026, 6:53pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/6 "2026-09-26T18:53:59Z")

</div>

Thanks, jaeha, that’s great! Fixed recurring auth will work for us for launch, so please leave that enabled. Could you tell me what the risk review for variable recurring auth involves, and how long it usually takes? We may ask for it later, for tuition that changes month to month. I would like to proceed with enabling variable recurring auth.

---

<div class="post-metadata">

**Author:** ![jaeha](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jaeha](https://developer.squareup.com/forums/u/jaeha)\
**Post date:** [September 28, 2026, 6:48pm UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/7 "2026-09-28T18:48:31Z")

</div>

We are currently reviewing the onboarding process for both fixed recurring and variable recurring. As of now, we are testing the variable recurring only with a select few and we will let you know if this becomes more public.

---

<div class="post-metadata">

**Author:** ![418webdesigns](https://avatars.discourse-cdn.com/v4/letter/4/5fc32e/32.png) [@418webdesigns](https://developer.squareup.com/forums/u/418webdesigns)\
**Post date:** [October 20, 2026, 11:24am UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/9 "2026-10-20T11:24:51Z")

</div>

Jaeha, is there any way you can whitelist my application for fixed recurring ach as well? I have clients asking for this functionality. I can PM you details if needed.

---

<div class="post-metadata">

**Author:** ![jaeha](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jaeha](https://developer.squareup.com/forums/u/jaeha)\
**Post date:** [October 21, 2026, 12:53am UTC](https://developer.squareup.com/forums/t/web-payments-sdk-ach-recurring-charge-always-returns-unexpectederror-sandbox/27983/10 "2026-10-21T00:53:45Z")

</div>

Fixed recurring will be GA’ed next year and we are no longer onboarding any new partners on this beta feature. We don’t have an ETA when it will be GA’ed but it will become public then and you will be able to use it then as well!
