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

Payment - handle errors from payment provider better #2583

Open
3 tasks
bjorntore opened this issue Oct 16, 2024 · 1 comment · May be fixed by #2584
Open
3 tasks

Payment - handle errors from payment provider better #2583

bjorntore opened this issue Oct 16, 2024 · 1 comment · May be fixed by #2584

Comments

@bjorntore
Copy link
Contributor

bjorntore commented Oct 16, 2024

Description of the bug

If you send some invalid data to the payment provider, it seems that the payment GUI gets stuck instead of showing that something failed, and allowing for retry or clicking "Tilbake".

Image

Think about: Any value gained if we let TE to inspect errors received from a payment processor and act on it in C# code? Think a bit about if we could return a result from payment processor that contains some error information. Maybe user actions could return text resource keys for known errors, that could be displayed in the GUI. Extendable with custom text resources.

Acceptance criteria:

  • Display that something failed.
  • Show the "Betal" button so that retries are possible.
  • Show "Tilbake" button if reject is configured.

Steps To Reproduce

  1. Use an app that has payment with Nets Easy configured. For instance: https://ttd.apps.tt02.altinn.no/ttd/payment-test-nets.
  2. Enter an invalid zip code as part of "Søkeren"'s address. For instance 11111.
  3. Enter some goods and services.
  4. Proceed to payment step.
  5. See in the developer console that the API call to pay-action fails, and that GUI gets stuck.

Additional Information

No response

@bjorntore bjorntore added the kind/bug Something isn't working label Oct 16, 2024
@bjorntore bjorntore added area/payment and removed kind/bug Something isn't working status/triage labels Oct 16, 2024
@bjorntore
Copy link
Contributor Author

Reported by @caroliss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👷 In Progress
Development

Successfully merging a pull request may close this issue.

2 participants