Card on file not found
-
I get this error all of a sudden when trying to check out with square:
I have no idea why this is happening, it just started today.
-
Hey there,
Thanks for including the screenshot – Square is porting that it can’t find the card that you’ve previous saved.
What happens if you remove the card from your saved payment methods (via My Account) – can you then check out correctly?
Also, how many other customers are seeing this problem?
So this is happening during guest checkout, with emails that are and are not associated with any existing account.
I’ve turned of tokenization which allows saving cards at all, and the error persists.
>Also, how many other customers are seeing this problem?
Currently the site is not live, I’ve been testing and debugging a lot of functionality on the site.
This bug is completely preventing guest checkout, the plugin works correctly for logged in users, with tokenization enabled and without.
Thanks for the details.
Square shouldn’t be looking for a saved card for a guest customer. It’s possible that there’s another plugin causing this behaviour.
What happens when only WooCommerce and Square are active, with a default theme like Storefront or TwentyTwenty? Be sure to also exclude any custom code when testing.
For full details of how to conflict test, see https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Hi @stephjacq,
You are right, our plugin adds the ability to run upsells even on the guest checkouts so we tweak flow and programmatically create tokens and use that token to charge primary orders and other upsell transactions.
Now here we are able to create the token but the charge call is failing, what we need is more insight about the issue/reason for why it’s failing.
Here you can see request/reponse for call having issue.
07-21-2021 @ 05:54:03 - Request method: uri: createPaymentWithHttpInfo user-agent: WooCommerce-Square/2.5.2 (WooCommerce/5.5.1; WordPress/5.7.2) headers: Array ( ) body: { "source_id": "ccof:kEv9CGbC7iBmlZxJ4GB", "idempotency_key": "36451c99569a45c74747697ff7b043b184a7eb3f", "amount_money": { "amount": 5499, "currency": "USD" }, "autocomplete": true, "order_id": "zNbSzXcNaAedD11Kfhslo1vl6aUZY", "customer_id": "7JAJF7V41MXCXCYE08HR0PWB3R", "location_id": "LTFYTNRXHMTPP", "reference_id": "9386", "buyer_email_address": "[email protected]", "billing_address": { "address_line_1": "b1 632, lower ground, metro pillar566", "address_line_2": "", "locality": "new delhi", "administrative_district_level_1": "NY", "postal_code": "10001", "country": "US", "first_name": "Amritansh", "last_name": "Trivedi", "organization": "" }, "shipping_address": { "address_line_1": "b1 632, lower ground, metro pillar566", "address_line_2": "", "locality": "new delhi", "administrative_district_level_1": "NY", "postal_code": "10001", "country": "US", "first_name": "Amritansh", "last_name": "Trivedi" }, "note": "Lone CBD - Order 9386" } duration: 0.29531s 07-21-2021 @ 05:54:03 - Response code: 404 message: headers: Array ( [0] => HTTP/1.1 404 Not Found [Date] => Wed, 21 Jul 2021 12:54:02 GMT [Frame-Options] => DENY [X-Frame-Options] => DENY [X-Content-Type-Options] => nosniff [X-Xss-Protection] => 1; mode=block [Content-Type] => application/json [Square-Version] => 2019-08-14 [Squareup--Connect--V2--Common--Versionmetadata-Bin] => CgoyMDE5LTA4LTE0 [Content-Length] => 107 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: Array ( [errors] => Array ( [0] => stdClass Object ( [code] => NOT_FOUND [detail] => Card on file not found [category] => INVALID_REQUEST_ERROR ) ) )
HI there!
You mentioned:
>You are right, our plugin adds the ability to run upsells even on the guest checkouts so we tweak flow and programmatically create tokens and use that token to charge primary orders and other upsell transactions.If you disable this process, does Square work correctly? We have seen other plugins interfere with Square in the past and if it is working correctly with your workflow turned off then you’ll need to work with a developer to resolve your workflow issues.
Team Woofunnels is the developer of Woofunnels, the plugin I am using for the checkout process. They are trying to get your insight into the issue so that they can write a fix. If there is a better portal for them to contact you, please let us know, otherwise please respond here so they can implement a fix based on your guidance.
-
This reply was modified 3 years, 8 months ago by
jazir5.
Hi @teamwoofunnels, @jazir5,
Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
If you already opened a ticket, we will get in touch with you via email.
-
This reply was modified 3 years, 8 months ago by
- The topic ‘Card on file not found’ is closed to new replies.