From 2d0ef76787549b78e1d279c98f1ea8cb6ca22904 Mon Sep 17 00:00:00 2001 From: Kevin Verschoor Date: Tue, 3 Mar 2020 14:50:17 +0100 Subject: [PATCH 1/2] added discount type to discount --- Model/Paymentmethod/PaymentMethod.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Model/Paymentmethod/PaymentMethod.php b/Model/Paymentmethod/PaymentMethod.php index 33880dbd..aae6c561 100644 --- a/Model/Paymentmethod/PaymentMethod.php +++ b/Model/Paymentmethod/PaymentMethod.php @@ -403,7 +403,8 @@ protected function doStartTransaction(Order $order) 'name' => $discountDescription, 'price' => $discount, 'qty' => 1, - 'tax' => $discountTax + 'tax' => $discountTax, + 'type' => \Paynl\Transaction::PRODUCT_TYPE_DISCOUNT ); } From 63f76ea3d2ddf8beaf32a8c6ec40643ca5cb3c04 Mon Sep 17 00:00:00 2001 From: Kevin Verschoor Date: Wed, 4 Mar 2020 08:37:41 +0100 Subject: [PATCH 2/2] Add type article to products. --- Model/Paymentmethod/PaymentMethod.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/Paymentmethod/PaymentMethod.php b/Model/Paymentmethod/PaymentMethod.php index aae6c561..dc7b47a9 100644 --- a/Model/Paymentmethod/PaymentMethod.php +++ b/Model/Paymentmethod/PaymentMethod.php @@ -343,6 +343,7 @@ protected function doStartTransaction(Order $order) 'price' => $price, 'qty' => $arrItem['qty_ordered'], 'tax' => $taxAmount, + 'type' => \Paynl\Transaction::PRODUCT_TYPE_ARTICLE ); # Product id's must be unique. Combinations of a "Configurable products" share the same product id.