WooCommerce Square CreateCard INVALID_CARD_DATA Error

We manage a nonprofit organization’s WooCommerce website that uses Square for recurring membership subscription payments.

Customers are unable to change the credit cards associated with their existing subscriptions.

Software environment:

  • WordPress 7.1.5

  • WooCommerce 11.3.1

  • WooCommerce Square 5.5.3

  • Square API version 2025-01-23

  • Production environment, United States merchant

The Square CreateCard API returns HTTP 400, INVALID_REQUEST_ERROR, INVALID_CARD_DATA.

Our diagnostic logs show that:

  • Normal credit card payments succeed.

  • Existing Square customer records are retrieved successfully.

  • Existing saved credit cards are accessible.

  • Square.js tokenization completes successfully.

  • A populated payment nonce is submitted to CreateCard.

  • Square rejects the request.

Saving a credit card using a completed payment ID succeeds, while saving a credit card directly using a newly generated payment nonce fails.

Square support previously suggested a race condition. However, our logs show that token generation completed before the CreateCard request was submitted.

WooCommerce’s official Square troubleshooting documentation acknowledges this exact error as a known issue potentially related to Square risk rules.

We are also experiencing a separate issue where the WooCommerce Subscriptions Renew Now button fails before reaching Square’s payment API.

Our client has spent over seven hours communicating with 12 Square support agents without resolution.

We have six diagnostic log files documenting these failures but have been unable to obtain a private submission channel.

Can a Square developer support representative assist with the following?

  1. Identify why standalone card-on-file creation fails while normal payments succeed.

  2. Determine whether merchant-level risk restrictions are contributing.

  3. Confirm whether additional tokenization or buyer verification requirements apply.

  4. Provide a private channel to submit our diagnostic logs and existing support case references.

  5. Provide a supported solution or workaround.

This is a production issue affecting the organization’s ability to collect membership renewal revenue.

Any technical assistance would be greatly appreciated.

Thank you.

Thanks for documenting both flows. I’m sorry you’ve spent so much time trying to get this resolved, especially with membership renewals at stake.

Have you already opened a case with WooCommerce Support? If not, I’d ask them to review the change payment method flow for an existing subscription. The fact that saving from a completed payment works is a useful clue. For the save-only flow, WooCommerce can confirm whether the plugin generates the card token with intent: 'STORE' and whether any billing postal code sent to CreateCard matches what was entered in the card form. INVALID_CARD_DATA alone doesn’t tell us whether a Square risk rule was involved.

I’d also flag Renew Now separately with WooCommerce, since your logs show that it stops before reaching Square’s Payments API.

If you’ve already raised this with WooCommerce, or if they confirm the save-only request is configured as expected, let us know what they found so we can narrow down what needs review on the Square side. Please keep raw logs, payment tokens, and card details out of the public thread.