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

Re-initialize checkout when order amount is changed #1058

Merged
merged 7 commits into from
Mar 20, 2024

Conversation

zenit2001
Copy link
Contributor

Summary

Describe the changes proposed in this pull request:

  • What is the motivation for this change?
    When we switched from /sessions to /paymentMethods, a check was missing for updating the remaining amount passed to components to complete the payment.
    Also, the updation of amount in component was failing when giftcards were being removed. This also gets fixed by this PR.
  • What existing problem does this pull request solve?
    Updating the remaining amount properly when paying with giftcards and when removing giftcards.

Note : The bug was present only in develop branch and was not part of any release.

Tested scenarios

Description of tested scenarios:

  • Giftcards + Apple Pay
  • Giftcards + iDeal
  • Giftcards + Cards
  • Giftcards removal and proceeding with payment

Fixed issue: SFI-649

@zenit2001 zenit2001 added the fix Fixes a bug label Mar 14, 2024
@zenit2001 zenit2001 marked this pull request as ready for review March 15, 2024 11:33
amihajlovski
amihajlovski previously approved these changes Mar 18, 2024
Copy link

sonarcloud bot commented Mar 20, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
34.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@zenit2001 zenit2001 merged commit d809507 into develop Mar 20, 2024
14 of 15 checks passed
@zenit2001 zenit2001 deleted the bugfix/SFI-649-order_amount_not_updated_properly branch March 20, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants