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

[ECP-9206] Fix return type in checking adyen orders #518

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Conversation

SushmitaThakur
Copy link
Contributor

@SushmitaThakur SushmitaThakur commented Jul 10, 2024

Summary

This PR is a fix on a earlier PR - #504 .
The isAdyenOrder() returns a promise with a boolean value here, the status is a boolean returned by the endpoint. However, since the isAdyenOrder() or beforeMount() wasn't async, javascript wasn't waiting for response.status in the promise but only checking the existence of the promise that was returned. By awaiting the response we receive the boolean value from the response of the request.

Tested Scenarios

Refund, notification, partial-payments

RokPopov
RokPopov previously approved these changes Jul 11, 2024
Copy link

sonarcloud bot commented Jul 11, 2024

@RokPopov RokPopov merged commit 2fc9de1 into develop Jul 17, 2024
7 of 8 checks passed
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