Skip to content

Conversation

@Narayanbhat166
Copy link
Contributor

Type of Change

  • Bugfix

Description

The error message was previously in the format

{
    "error": {
        "type": "invalid_request",
        "message": "This refund is not possible through Hyperswitch. Please raise the refund through {connector} dashboard",
        "code": "HE_03"
    }
}

Here the connector should have been replaced by the actual connector name. This has been fixed in this PR.

Motivation and Context

Display the actual connector name.

How did you test it?

  • Create a payment by klarna connector.
  • Create a refund
Screenshot 2023-06-22 at 7 36 05 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code

@Narayanbhat166 Narayanbhat166 added C-bug Category: Bug S-waiting-on-review Status: This PR has been implemented and needs to be reviewed A-errors Area: error messages, structure & logging labels Jun 22, 2023
@Narayanbhat166 Narayanbhat166 self-assigned this Jun 22, 2023
@Narayanbhat166 Narayanbhat166 requested a review from a team as a code owner June 22, 2023 14:06
@SanchithHegde SanchithHegde enabled auto-merge June 22, 2023 15:01
@SanchithHegde SanchithHegde disabled auto-merge June 22, 2023 15:01
@SanchithHegde SanchithHegde merged commit 1da411e into main Jun 22, 2023
@SanchithHegde SanchithHegde deleted the fix_refund_not_possible_message branch June 22, 2023 15:02
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-errors Area: error messages, structure & logging C-bug Category: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants