Skip to content

Client is not following adyen docs about psp reference #156

@artemijan

Description

@artemijan

Describe the bug
Currently adyen api library is not following this documentation https://docs.adyen.com/development-resources/response-handling#error-response-fields
psp reference should be taken form the body first and if it doesn't exist then we should check headers
here is a line that contains wrong behaviour

psp = headers.get('pspReference', response.get('pspReference'))

To Reproduce
Steps to reproduce the behavior:

  1. make payments request
  2. check AdyenResponse object
  3. check that psp is taken from headers instead of body

Expected behavior
Accordingly to the documentation it should be taken from the body first

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions