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

[ECP-9095] Unnecessary hyphen prepended to "Description" when "Refusal Reason" is not provided #2571

Open
angusmellorEND opened this issue Mar 26, 2024 · 1 comment
Assignees
Labels
Bug report Indicates that issue has been marked as a possible bug

Comments

@angusmellorEND
Copy link

angusmellorEND commented Mar 26, 2024

Making your own contribution is easy, encouraged and greatly appreciated! We will put effort into reviewing and merging your PR quickly. For more info, please refer to the contribution guidelines: https://github.com/Adyen/adyen-magento2/blob/develop/CONTRIBUTING.md

Describe the bug
" - " is prepended to "Description" set in admin panel when no "Refusal Reason" is given.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to Admin Panel -> Error handling -> Gateway Refusal Reasons
  2. Provide a Reason Code and Description, but leave the Refusal Reason field blank.
  3. Place Order, forcing the Reason Code provided above with corresponding holderName as found in docs (here)
  4. Observe the response. It is formatted as "message: - ", where is the description provided in step 2.

Expected behaviour
When Refusal reason is left blank, response should be formatted "message: ". " - " not included in the message

Magento version
2.4.5-p5

Plugin version
9.0.6

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: All
  • Browser All

Smartphone (please complete the following information):

  • Device: All
  • OS: All

Additional context
Add any other context about the problem here.

@angusmellorEND angusmellorEND added the Bug report Indicates that issue has been marked as a possible bug label Mar 26, 2024
@candemiralp candemiralp changed the title Unnecessary hyphen prepended to "Description" when "Refusal Reason" is not provided [ECP-9095] Unnecessary hyphen prepended to "Description" when "Refusal Reason" is not provided Mar 29, 2024
@candemiralp
Copy link
Member

Hello @angusmellorEND,

Thank you for creating this Github issue. We've created an internal investigation ticket for this.

Best Regards,
Can

@candemiralp candemiralp self-assigned this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Indicates that issue has been marked as a possible bug
Projects
None yet
Development

No branches or pull requests

2 participants