Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EM-193] - Update displayed error message when payment failed #207

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

kan98
Copy link
Contributor

@kan98 kan98 commented Mar 22, 2021

1. Objective

Explain in non-technical terms WHY this PR is required.
E.g.: What feature it adds, what problem it solves...

This section will be used in the release notes.

Error mappings are introduced to update the error message on the plugin. This will give a more detailed error message to the consumer than what is provided by the API.

Related information:
Related issue(s): #< GitHub ticket number > (optional)

2. Description of change

A general description of WHAT changed in the codebase, but short of an English version of the diff. Assume that people reading this will also be looking at the output of git diff and guide them to the highlights.

Additionally add the reasoning for change details if they're complex or abstract.

Modified the translations for 'failed processing' and 'payment rejected' messages to the message provided from the customer support team.

3. Quality assurance

Specify where and how you tested this and what further testing it might need.

Added unit tests for the translations on PHPUnit. Did manual testing and the result is as expected.

🔧 Environments:

Specify the details of your test environments, including, for each, the platform version (on which the plugin was run), the Omise plugin version, and the versions of your system software such as PHP or Ruby.

i.e.

  • WooCommerce: v5.1.0
  • WordPress: v5.7
  • PHP version: 7.4.16
  • Omise plugin version: Omise-WooCommerce 4.6 (optional, in case of submitting a new issue)

✏️ Details:

Explain how to manually test this feature.
For example if changes were made in the UI or in the API, explain where and if any specific access is needed.

Use the test mode and create charge using these failure cards https://www.omise.co/api-testing to see the expected output.

4. Impact of the change

List the steps that must be taken for this PR to work.
E.g.: rake yak:shave, Add "yak_key" to environment variables, ...

Be sure to include all systems that needs to be changed or which system is affected by the change
(Ex: Requires Elastic search to be installed and configured in secrets.yml).

None

Note: Please provide a screenshot if your changed impact to UI.

Error messages changed in the output.

5. Priority of change

Normal, High or Immediate.

High

6. Additional Notes

Any further information that you would like to add.

@kan98 kan98 merged commit cde4c62 into master Mar 23, 2021
@kan98 kan98 deleted the localise-error-messages branch March 23, 2021 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants