Why?
If PayPal doesn't provide an explicit discount line item in the invoice why can't you simply distribute the discount/coupon over the number of items actually sold.
Fixed discounts could be turned into a percentage off per item by calculating the total after the discount and dividing it by the total before discount.
I realize that you have to take into account rounding errors (maybe use the bankers rounding algorithm) but it seems like this could all be done in a deterministic way and then at least the shopping carts items would be preserved in the paypal invoice.
Is there *really* a technical reason why this cannot be done this way?
There is more than one way to skin a cat.
cheers
Bookmarks