Skip to content

fix: napmv2: on payment failure display error message provided by gateway instead of generic#251

Merged
szymon-mysiak-cko merged 3 commits intomasterfrom
napm-display-gateway-err-message
Mar 27, 2026
Merged

fix: napmv2: on payment failure display error message provided by gateway instead of generic#251
szymon-mysiak-cko merged 3 commits intomasterfrom
napm-display-gateway-err-message

Conversation

@szymon-mysiak-cko
Copy link
Copy Markdown
Contributor

@szymon-mysiak-cko szymon-mysiak-cko commented Mar 26, 2026

Display the actual error message returned by the flow instead of always showing the same generic "Unable to connect" text.
This in general happens when gateway does not respect returning proper error code, e.g. gateway.invalid-customer-input/state:FAILED instead of request.validation.invalid-input. New nAPM correctly treats its as Failure, but displays always generic message, ignoring gateway output.

It’s needed so checkout can surface the real failure reason on HPP (e.g. invalid customer input) and avoid masking it as a fake connectivity/internal error.

reference: https://processout.slack.com/archives/C0548JC4NAG/p1774440299276609?thread_ts=1774368288.629709&cid=C0548JC4NAG

image

@szymon-mysiak-cko szymon-mysiak-cko changed the title fix fix: napmv2: on payment failure display error message provided by gateway instead of generic Mar 26, 2026
@szymon-mysiak-cko szymon-mysiak-cko merged commit 2eb8b9d into master Mar 27, 2026
5 checks passed
@szymon-mysiak-cko szymon-mysiak-cko deleted the napm-display-gateway-err-message branch March 27, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants