Skip to content

API erors handling #7

@niksumeiko

Description

@niksumeiko

Overview

Display API errors

Acceptance criteria

  • Display API error underneath related input field

  • Display generic API error above payment form

    • When it's not related to any input field

Design

API specification

  • The POST /pay endpoint
  • Throws the following errors interface:
Attribute Type
scope string(amount | bic )
message string
  • Multiple errors could be thrown at once

Errors response example

[
  {  "scope": "amount", "message": "Missing amount" },
  {  "scope": "bic", "message": "Missing BIC" },
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwipExtra attention is needed

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions