Started building upon the paypal rest gateway and while most things seem to working i have seen there are quite a few changes with discounts...
previously it was possible to add a line with a negative amount to set as discount, but it seems like it does not want to accept negative values in the setItems array anymore. I've tried several formats and to hardcode it.
Otherwise when using the rest api, and leaving out the setItems method it won't display a total or whatsoever.
Lastly when having an item list without discount, but the amount has it calculated, it'll error out saying item values do not match.
I haven't figured out how i can add the discount value otherwise...
Started building upon the paypal rest gateway and while most things seem to working i have seen there are quite a few changes with discounts...
previously it was possible to add a line with a negative amount to set as discount, but it seems like it does not want to accept negative values in the setItems array anymore. I've tried several formats and to hardcode it.
Otherwise when using the rest api, and leaving out the setItems method it won't display a total or whatsoever.
Lastly when having an item list without discount, but the amount has it calculated, it'll error out saying item values do not match.
I haven't figured out how i can add the discount value otherwise...