Closed villermen closed 5 years ago
As the amounts are required to be negative for this type of orderline, it is probably best to handle this inside this package. (The first thing that came to mind was allowing AbstractRequest::getMoney()
in omnipay/common
to format negative values.) It's probably better to just take the absolute value of the supplied amount and add the minus sign after formatting.
Does https://github.com/thephpleague/omnipay-mollie/pull/62 fix you issue?
Yeah, thanks.
When I supply negative amounts for the discount line in an order, an exception is thrown indicating this is not allowed. It is though: https://docs.mollie.com/orders/handling-discounts#discounts-and-vouchers.
lines
parameter supplied toGateway::createOrder()
:Error information: