Skip to content

Commit

Permalink
Merge pull request #54 from kevinverschoor/master
Browse files Browse the repository at this point in the history
added discount type to discount
  • Loading branch information
max-geraci authored Mar 4, 2020
2 parents 14319a4 + 63f76ea commit fb31d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Paymentmethod/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -403,7 +404,8 @@ protected function doStartTransaction(Order $order)
'name' => $discountDescription,
'price' => $discount,
'qty' => 1,
'tax' => $discountTax
'tax' => $discountTax,
'type' => \Paynl\Transaction::PRODUCT_TYPE_DISCOUNT
);
}

Expand Down

0 comments on commit fb31d02

Please sign in to comment.