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

In-person Payments - Adyen HttpClient throws a 400: BadRequest, ResponseBody: {"errors":["At toplevel: Missing"]} #1077

Open
Kwok-he-Chu opened this issue Oct 31, 2024 · 1 comment

Comments

@Kwok-he-Chu
Copy link
Contributor

Describe the bug
When passing a SaleToPoiMessage as parameter in any of the following classes:

  • TerminalApiAsyncService
  • TerminalApiSyncService
  • TerminalApiLocalService

An error Adyen.HttpClient.HttpClientException : '400: BadRequest, ResponseBody: {"errors":["At toplevel: Missing"]}' will be thrown, because the backend (and the terminal itself) cannot read the JSON that starts with:

{
    "SaleToPoiMessage" :  {
        ...
    }
}

The correct request object should be:

{
    "SaleToPoiRequest": {

    }
}

Expected behavior
The current interface allows developers to pass the SaleToPoiMessage-object, let's enforce the SaleToPoiRequest in the interface.

Screenshots

Additional context

Copy link

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant