You may see errors when integrating with WooCommerce due to the following reasons:
- Using Production credentials in the UAT environment or vice versa. This means mixing up test (UAT) credentials with live (Production) credentials.
- Providing incorrect credentials (client ID, client version, or client secret). Double-check that all credentials are entered correctly.
- Trouble saving credentials in the plugin. If you see the error, ‘Unexpected error occurred while saving credentials. Please refer to logs for more information.’ it could indicate a problem with the way the credentials are being saved or a system issue.
To fix these, please ensure the following:
- You are using the correct Production credentials found in your Dashboard under the Developer Settings section
- For Production credentials, make sure you’ve selected Production as the environment
- Your PHP version is 8.2 or above
The transaction could not be initiated because of network issues. Please check network connectivity.
- While trying to initiate a payment, if you see the above error message, it may be because you have used incorrect credentials in the payment request.
To fix this, please ensure that you:
- Double-check that you are using the correct credentials (client ID, client secret, etc.) in your integration
- Check if your network connectivity is stable