PaylineByMonext/payline-php-sdk

[SDK 4.65.1 +] amount is mandatory, but do not accept 0 value

Closed this issue · 2 comments

Hello !
According to the documentation the amount field inOrder and Payment objects is mandatory. It's ok, I can understand that. But...

image

Our problem is that for DSP2, we need to send amount of 0€. By the way, the sdk create a soap object with null value and not 0, then the api refuse to get this amount.
I have seen in sdk code (\Payline\SoapVarFactory::userDataIsNotEmpty) that when it create the object, the empty() php function is used. But for php empty(0) = true, so the final value is null.

How could we do to send 0€ amount ?

Thanks

Will be fix in #102

Fixed