• Resolved hdolivares

    (@hdolivares)


    Hello,
    It’s been about two weeks since Square Credit Card payments in the website have worked intermittently, and now they stopped working with all transactions. I enabled the debug mode and I’m getting this:

    Request
    method:
    uri: retrieveCustomerWithHttpInfo/CBASEL2aJM1AiPUlsYpZBGgoZ24gAQ
    user-agent: WooCommerce-Square/2.1.4 (WooCommerce/4.1.0; WordPress/5.4.1)
    headers: Array
    (
    )
    body:
    duration: 0.62728s
    Response
    code: 404
    message:
    headers: Array
    (
    [0] => HTTP/1.1 404 Not Found
    [Content-Type] => application/json
    [Square-Version] => 2019-08-14
    [Vary] => Origin, Accept-Encoding
    [X-Content-Type-Options] => nosniff
    [X-Download-Options] => noopen
    [X-Frame-Options] => SAMEORIGIN
    [X-Permitted-Cross-Domain-Policies] => none
    [X-Xss-Protection] => 1; mode=block
    [Date] => Wed, 06 May 2020 04:58:51 GMT
    [Content-Length] => 140
    [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload
    )
    body: Array
    (
    [errors] => Array
    (
    [0] => stdClass Object
    (
    [category] => INVALID_REQUEST_ERROR
    [code] => NOT_FOUND
    [detail] => Customer with ID <code>CBASEL2aJM1AiPUlsYpZBGgoZ24gAQ</code> not found.
    )
    
    )
    
    )

    This is happening to all the clients.
    The changes have been - updating Square and WooCommerce to their latest versions.
    I have disconnected/reconnected Square but the problem persists.
    Today I updated, in the Square Dev portal, the API to the latest version - 2020-04-22 (Latest) but the problem persists. I'm using this for recurring payments (which are working fine).
    I'm not sure what else I'm supposed to do to fix this.

    In the meantime I have disabled the payment gateway and enabled PayPal.

    • This topic was modified 5 years, 11 months ago by hdolivares.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    Sorry about the issues you are seeing, and the delay in response here.

    This sounds like a customer id for requesting a saved card is being sent for a payment request.

    If this isn’t supposed to happen, it can be caused by a few things:

    * The theme you are using has JS errors on the checkout page
    * There’s caching on the checkout page
    * There’s other outdated code on the site
    * The customer trying to place an order is logged into an account that had a card saved (potentially in testing mode) that is no longer saved or it can’t access it across sandbox/live accounts.

    Can you check on those things?

    Thread Starter hdolivares

    (@hdolivares)

    Hi, thanks for your answer. I did check on those things, everything seemed okay. I couldn’t figure out what was it so I purchased the WOOCOMMERCE SQUAREUP PAYMENT GATEWAY PRO – SIMPLE AND RECURRING PAYMENTS plugin.

    All payments work now. Thanks Slash

    Plugin Support slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    OK, going to mark this as completed.

    Have a great one!

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

The topic ‘Invalid Request Error – Customer with ID not found’ is closed to new replies.