Square Web Payments SDK Sandbox — Invalid / VALIDATION_ERROR

Hello Square Developer Support,

I’m developing a custom checkout for my bakery using the Square Web Payments SDK in Sandbox.

I’m repeatedly receiving this error when calling card.tokenize():

{
  "status": "Invalid",
  "errors": [
    {
      "type": "VALIDATION_ERROR"
    }
  ]
}

Test information:

  • Date: November 23, 2026

  • Time: 11:01:04 AM Central (17:01:04 UTC)

  • Environment: Square Sandbox

  • Card: Official no-challenge Visa Sandbox test card ending in 0004

  • Amount: $12.30 USD

What I’ve verified:

Square’s own SDK field-validation events confirmed that the card number, expiration, CVV, and ZIP were all valid, nonempty, and showing no errors immediately before tokenization.

My original tokenization request was:

await card.tokenize({
  amount: "12.30",
  currencyCode: "USD",
  intent: "CHARGE",
  customerInitiated: true,
  sellerKeyedIn: false
});

I’ve since added billingContact: {} to the request, but haven’t performed another payment test.

No payment token was generated, no Payments API request was sent, and no matching Sandbox payment exists.

My questions:

  1. Why might card.tokenize() return Invalid / VALIDATION_ERROR when all four Square card fields report valid?

  2. Is an empty billingContact: {} acceptable?

  3. Does the Sandbox test card ending in 0004 require additional verification information?

  4. Are there additional diagnostics or SDK request identifiers I can collect to determine the failing validation check?

I’d appreciate help identifying the cause before attempting another payment.

Thank you!