We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 075e0bd4 authored by Stefan Bothner's avatar Stefan Bothner Committed by GitHub

Filter out children from invoice item collection

Authorization/CheckoutDataBuilder (https://github.com/Adyen/adyen-magento2/blob/develop/Gateway/Request/CheckoutDataBuilder.php#L217) filters out all children of quote item by default. This means that there are different amounts of data in the lines for authorization and capture requests. This leads to the following error with RatePay:

2300: Request basket not valid Basket error: ITEM "Product Name" Product Name: not found in history (150)
parent c3a7e85c
......@@ -102,7 +102,8 @@ class CaptureDataBuilder implements BuilderInterface
// The latest invoice will contain only the selected items(and quantities) for the (partial) capture
$latestInvoice = $invoices->getLastItem();
foreach ($latestInvoice->getItems() as $invoiceItem) {
foreach ($latestInvoice->getItems() as $invoiceItem) {
if($invoiceItem->getOrderItem()->getParentItem()) continue;
++$count;
$numberOfItems = (int)$invoiceItem->getQty();
$formFields = $this->adyenHelper->createOpenInvoiceLineItem(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment