Altinn / Altinn/app-frontend-react

We need a way of testing the payment solution locally

Open
#4,117 0 comments 0 reactions 0 assignees View on GitHub
squad/flyt status/draft status/for-consideration
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description

We should have a way of testing the payment flow locally in order to more easily be able to do debugging in frontend. Now you have to publish a frontend version, update a test-app with payment set up, then build and deploy the app before you can test a single code change.

Payment needs the Nets API as well as Azure keyvault in order to perform a process action using a machine user.
We should create a mock of these API calls so that we can consistently test the frontend flow in different scenarios.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified in the issue. Start by tracing the frontend payment flow and its Nets API and Azure Key Vault dependencies, then define how local mocks should represent the different payment scenarios; done means the flow can be debugged locally without publishing or deploying the frontend.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, react, typescript
Domain
frontend, payments, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.