• Resolved iamrizu

    (@iamrizu)


    Error: Unable to complete your transaction with square due to some issue. For now you can try some other payment method or try again later.

    Hi, there. I am using facing a problem with the square payment plugin. All of my plugins and used them are updated.
    I am getting this error while checkout. “Error: Square was unable to complete the transaction. Please try later or use another means of payment.”
    Here is the WooCommerce log status

    01-13-2019 @ 08:30:39 – Info: Begin processing payment for order 354 for the amount of 4.00
    01-13-2019 @ 08:30:39 – Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => INVALID_ENUM_VALUE
    [detail] => is not a valid enum value for billing_address.country.
    [field] => billing_address.country
    )

    )

    01-13-2019 @ 08:40:14 - Info: Begin processing payment for order 355 for the amount of 5.00
    01-13-2019 @ 08:40:14 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => INVALID_ENUM_VALUE
    [detail] => is not a valid enum value for billing_address.country.
    [field] => billing_address.country
    )

    )

    01-13-2019 @ 09:42:17 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:42:17 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => INVALID_ENUM_VALUE
    [detail] => is not a valid enum value for billing_address.country.
    [field] => billing_address.country
    )

    )

    01-13-2019 @ 09:44:34 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:44:35 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => PAYMENT_METHOD_ERROR
    [code] => INVALID_CARD
    [detail] => Invalid card number.
    )

    )

    01-13-2019 @ 09:46:08 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:46:08 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:50:05 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:50:05 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:51:31 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:51:31 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:52:46 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:52:46 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:54:43 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:54:43 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:57:05 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:57:05 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 09:58:08 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 09:58:08 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 10:00:07 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 10:00:07 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 10:01:19 - Info: Begin processing payment for order 363 for the amount of 25.00
    01-13-2019 @ 10:01:19 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    01-13-2019 @ 14:48:24 - Info: Begin processing payment for order 364 for the amount of 35.00
    01-13-2019 @ 14:48:25 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => PAYMENT_METHOD_ERROR
    [code] => INVALID_CARD
    [detail] => Invalid card number.
    )

    )

    01-13-2019 @ 14:50:26 - Info: Begin processing payment for order 364 for the amount of 35.00
    01-13-2019 @ 14:50:26 - Error: Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key
    )

    )

    The page I need help with: https://kittylovelounge.com

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    @iamrizu – There are two different errors in the logs you shared.

    The first error:

    [category] => INVALID_REQUEST_ERROR
    [code] => INVALID_ENUM_VALUE
    [detail] => is not a valid enum value for billing_address.country.
    [field] => billing_address.country

    This error means that Square is rejecting the transaction as it is not receiving a transaction value that aligns with the currency for your country.

    This could be caused by a conflict from a third-party theme or plugin, or by mismatched settings on your website.

    First, I recommend checking that both your Square account and WooCommerce site are using the same currency. You can check and change the currency for your WooCommerce site by going to WooCommerce > Settings > General. If you are unsure of what currency your Square account uses, you can contact Square customer support and they will be able to tell you.

    If your WooCommerce site is using the same currency as your Square account already, then I would suggest some theme and plugin conflict tests. We have a guide on how to test for conflicts here:
    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Since those tests will impact the look and functionality of your site, I recommend doing them on a staging site. If you don't already have a staging site set up, check with your hosting company as many offer this as part of their packages. Otherwise, you can use a free plugin such as WP Staging to set one up.

    The second error in your logs:

    [code] => IDEMPOTENCY_KEY_REUSED
    [detail] => The idempotency key can only be retried with the same request data.
    [field] => idempotency_key

    Is likely from the constant retrying of the same failed transaction, though check to see if the above conflict tests also help resolve this.

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    As I have not heard a reply to this topic, I will consider it resolved. If you are still having trouble with this, please feel free to let us know.

    Hi,
    I’m facing a similar problem.
    Not able to make a payment with the Woocommerce Square plugin.

    Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => INVALID_ENUM_VALUE
    [detail] => <code>United States</code> is not a valid enum value for <code>billing_address.country</code>.
    [field] => billing_address.country
    )
    
    )
    Order status changed from Pending payment to Failed.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: Unable to complete your transaction with square due to some issue.’ is closed to new replies.