-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
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
adyen-python-api-library/Adyen/client.py
Line 632 in 26c0cf2
psp = headers.get('pspReference', response.get('pspReference')) |
To Reproduce
Steps to reproduce the behavior:
- make payments request
- check AdyenResponse object
- 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
Labels
No labels