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

The app developer should be able to add Payment component to the layout #12806

Closed
1 task
Tracked by #10759
framitdavid opened this issue May 14, 2024 · 3 comments
Closed
1 task
Tracked by #10759

Comments

@framitdavid
Copy link
Collaborator

framitdavid commented May 14, 2024

The first step a service developer needs to enable for supporting payment within their app is to add the Payment component to its layout.

Example of how the configuration looks:

{
  "$schema": "https://altinncdn.no/toolkits/altinn-app-frontend/4/schemas/json/layout/layout.schema.v1.json",
  "data": {
    "layout": [
      {
        "id": "payment-test-component",
        "type": "Payment",
        "textResourceBindings": {
          "title": "Oppsummering"
        },
      }
    ]
  }
}

Why: (Have sent a message to the team apps to ensure my assumptions is correct).
This configuration enables payment functionality within the apps. The component is responsible for displaying payment status and allows the user to proceed with payment or cancel. By setting autoForwardToPayment: true, users will be automatically directed to the payment at Nets.

Needs clarifications

@framitdavid framitdavid changed the title Support adding layout for Payment from Studio. The app developer should be able to add Payment to the layout May 14, 2024
@framitdavid framitdavid added status/ready-for-specification Status: Used for issues that are ready for functional decription og detailed design. feature/payment labels May 14, 2024
@nkylstad nkylstad changed the title The app developer should be able to add Payment to the layout The app developer should be able to add Payment component to the layout May 15, 2024
@nkylstad
Copy link
Member

If I'm not mistaken, this component should be available only in custom payment layout for the payment step? And will be used by default if the default payment layout if no custom layout is created.

@WilliamThorenfeldt
Copy link
Contributor

Blocked until issue #12809 is solved.

@nkylstad
Copy link
Member

Might have to do something with Preview here as well. Possibly simulate that payment is successful? We could expand this to that the app developer could toggle different states for payment status?

@nkylstad nkylstad removed their assignment May 30, 2024
@nkylstad nkylstad removed their assignment Jun 10, 2024
@nkylstad nkylstad removed the status/ready-for-specification Status: Used for issues that are ready for functional decription og detailed design. label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🧪 Test
Development

No branches or pull requests

3 participants