Closed iamdharmesh closed 3 weeks ago
Thanks, @iamdharmesh, for the fixes! I’ve identified scenarios that need to be addressed.
Fields Required Tests:
Credentials Verification:
When the admin adds invalid credentials, a warning notice is displayed in the backend, but the PayFast payment option still appears on the checkout page. Is it possible to hide the PayFast option on the frontend when the credentials are invalid?
https://github.com/user-attachments/assets/dba50e2c-ddc0-4441-b46f-18b35c30f226
Thanks for testing this @ankitguptaindia,
When the admin adds invalid credentials, a warning notice is displayed in the backend, but the PayFast payment option still appears on the checkout page. Is it possible to hide the PayFast option on the frontend when the credentials are invalid?
Sure, I had added normal credentials validation to show only notice. But now I have updated it to strict validation where notice will be keep showing and payment gateway will not display in the front-end until merchant enter the correct credentials. Could you please help to check once now.
Thank you.
Testing Environment -
Test Results -
Fields Required Tests:
Credentials Verification:
Testing Environment -
Tested with Archive File created via woorelease command.
Status- Working as expected. Ready to merge 🚀
All Submissions:
Changes proposed in this Pull Request:
This PR adds credentials validation in the Payfast payment settings when the settings are saved and displays a corresponding notice. It also makes changes to show a required credentials field notice when the credentials are blank, and it prevents Payfast from appearing on the front-end checkout page. Previously, this required notice was only implemented for the production environment. This PR ensures it works for the sandbox environment as well.
Closes #216
Steps to test the changes in this Pull Request:
Changelog entry