On the WooCommerce checkout page, I’m using Square card payment. However, when a customer attempts to pay with a saved card, the payment does not complete, and the page remains in a processing state. I’ve noticed the following error in the network:
{“errors”:[{“category”:“INVALID_REQUEST_ERROR”,“code”:“NOT_FOUND”,“detail”:“Resource not found.”,“field”:“payment_source”}]}
Could you please guide me on what the exact issue might be? I’ve been trying to resolve this problem for the last three days.
It seems like you’re encountering an issue with the Square card payment on your WooCommerce checkout page. The error message you provided suggests that there is a problem related to the “payment_source” field and it’s returning a “NOT_FOUND” error.
To resolve this issue, you can follow these steps:
Check Square Configuration:
Ensure that your Square payment gateway is correctly configured within your WooCommerce settings. Make sure you have the correct API credentials and settings in place.
Check Saved Cards:
Verify that the saved card information for your customers is correctly stored in your Square account.
Update or Reinstall Plugins:
Sometimes, issues like this can be caused by conflicts with other plugins or outdated software. Ensure that your WooCommerce, Square, and any related payment plugins are up to date.
Review Checkout Settings:
Double-check your WooCommerce checkout settings to make sure that they are configured correctly. Pay special attention to any settings related to saved cards or payment processing.
Check for Errors in Custom Code:
If you have custom code or scripts related to your WooCommerce checkout, review them for any potential issues that might interfere with the payment process.
Testing Environment:
Consider setting up a staging or testing environment to debug and test the issue without affecting your live site. This will allow you to experiment with settings and diagnose the problem without any risk to your customers.
Contact WooCommerce Support:
If the issue persists after trying the above steps, it may be a more complex problem. In such cases, consider reaching out to WooCommerce support for further assistance. They can help you diagnose and resolve the issue.
By following these steps, you should be able to identify and resolve the issue with Square card payments on your WooCommerce checkout page. Make sure to backup your site before making any significant changes, especially if you’re not familiar with the technical aspects of your website.
Software Developer at [YES IT Labs](https://www.yesitlabs.com/)