I have an oscommerce shop and I am using Paypal payments direct which is a variation of paypal payments pro. I have installed a module on my site called discount codes. This module allows me to set up promo discount codes that can be applied at checkout.
I use only 2 forms of payment. I use the regular paypal module that takes you to the paypal site and I use Paypal payments direct for processing credit cards on my site.
The regular Paypal module passes the discount without any issues.
However, during checkout with the Paypal payments direct the discount is not passed to the paypal account.
The discount amount shows on the checkout page on the site but when I go to my account and check the transaction details it charges the full price instead of giving a discount.
This is the code for the Paypal payments direct module. I contacted the developer of the discount module and they told me that I should change the following:
Please try to replace
(empty($discount) ? 0 : $discount), 2));[/size][/b]