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

[PW-7208] Update adyen method call for virtual products #1716

Merged
merged 6 commits into from
Sep 22, 2022
Merged

Conversation

AlexandrosMor
Copy link
Contributor

@AlexandrosMor AlexandrosMor commented Sep 19, 2022

Description

The payment method call was not triggered for virtual products as the shipping information was missing.
It should be called for products without shipping information as well
Tested scenarios

  • with virtual product
  • with normal product and shipping address
  • changing the shipping address

Co-authored-by: @candemiralp

Morerice
Morerice previously approved these changes Sep 19, 2022
michaelpaul
michaelpaul previously approved these changes Sep 19, 2022
RokPopov
RokPopov previously approved these changes Sep 19, 2022
candemiralp
candemiralp previously approved these changes Sep 20, 2022
@Morerice Morerice requested a review from a team as a code owner September 21, 2022 19:16
@sonarcloud
Copy link

sonarcloud bot commented Sep 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AlexandrosMor AlexandrosMor merged commit d5d06d7 into develop Sep 22, 2022
@AlexandrosMor AlexandrosMor deleted the PW-7208 branch September 22, 2022 07:03
RokPopov pushed a commit that referenced this pull request Sep 22, 2022
* Update adyen method call for virtual products

* Remove checking for shipping adress before doing the payment methods call

Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>
Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>
RokPopov added a commit that referenced this pull request Sep 28, 2022
* add test for isFullAmountFinalized - immediate capture

* [PW-7208] Update adyen method call for virtual products (#1716)

* Update adyen method call for virtual products

* Remove checking for shipping adress before doing the payment methods call

Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>
Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>

* Version bump 8.6.0

* [PW-7147] Handle Capture Requests triggered from Customer Area (#1714)

* create adyen and magento invoice from webhook if captured manually in CA

* remove code smells

* throw exception if adyen_invoice null and canInvoice is false

* throw exception in case of CA initiated partial manual capture

* use AdyenWebhookException instead of a generic one

* rename method

Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>

* use renamed method

Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>

* update $adyenInvoice

Co-authored-by: Michael Paul <michael.paul@adyen.com>

* resolve merge conflicts

* get rid of code smells

* remove final code smells

* use $adyenInvoiceObject instead of $adyenInvoice

* remove code smell

Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>
Co-authored-by: Michael Paul <michael.paul@adyen.com>
Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>

* refactor the way we are building mock AdyenOrderPaymentHelper, fix testCreateAdyenOrderPayment

* setup testIsFullAmountAuthorized()

* add testIsFullAmountNotFinalizedManualCapture() and testIsFullAmountAuthorized()

* setup testRefundAdyenOrderPayment()

* remove code smells

* align params - code smell

* fix testRefundAdyenOrderPayment

Co-authored-by: Alexandros Moraitis <alexandros.moraitis@adyen.com>
Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>
Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>
Co-authored-by: peterojo <peter.ojo@adyen.com>
Co-authored-by: Can Demiralp <ecandemiralp@gmail.com>
Co-authored-by: Michael Paul <michael.paul@adyen.com>
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.

None yet

7 participants