Skip to content

Conversation

@rutgervandriel
Copy link
Contributor

@rutgervandriel rutgervandriel commented Nov 28, 2022

Description
Currently the _get_psp method only uses the PSP Reference from the headers if the variable psp_reference is equal to empty string. The problem is that when calls are made which do not return any PSP Reference in the fields, this check fails, as variable psp_reference is set to None. I outlined more of this problem in the following issue: #177

We specifically ran into this issue because when we create a new Payment Session, we don't obtain the original PSP reference (as it is not part of the response data) and therefore cannot initiate a refund as we require the original PSP reference. This solution will fix this by obtaining the PSP Reference from the header.

Tested scenarios
Existing unit tests pass

…y, take the PSP Reference from the header instead
michaelpaul
michaelpaul previously approved these changes Nov 29, 2022
@AlexandrosMor AlexandrosMor merged commit 33a9377 into Adyen:develop Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants