I'm running Drupal 5.12 with Ubercart 1.6, and I'm using "PayPal Website Payments Standard" as one of my payment options. I've noticed that - after applying a coupon code in the cart - the order review page displays the coupon-adjusted price but the adjustment is not being received by PayPal. When you click on the "complete your order" button and are sent to the PayPal website, the coupon value is not applied to the product price, so you end up paying the full price.
When I used the "test gateway" credit card payment option instead of PayPal, everything worked fine.
I'm running the following:
- Drupal 5.12
- Ubercart 1.6
- Apache 2.0.63 (Unix)
- PHP 5.2.5
- MySQL 4.1.22
Thanks.
Comments
Comment #1
Anonymous (not verified) commentedThis problem has been solved. Here's the solution, for anyone who's interested:
You have to send all items to PayPal as a single line item, because Paypal doesn't allow for negative line items (e.g. the coupon).
http://yoursite.com/admin/store/settings/payment/edit/methods
Expand "PayPal Website Payments Standard settings".
Set the submission method to "Submit the whole order as a single line item."
Thank you Troy, for your help.
Comment #2
green monkey commentedthank you for this post
Comment #3
longwaveThanks, this information has been noted in the module description.
Comment #5
ehuman commentedWe need the itemized cart data for accounting purposes. This is not really a fix, therefore. Does anyone have any other info?
Comment #6
longwavePayPal does not allow line items to be negative amounts, there is no way around this - as noted in the original post, if you try to send a negative line item it is ignored.
Comment #7
iomatic commentedWell, then is it an Ubercart issue? Can we apply the negative amount to each line item and then send that to PayPal? (Not a programmer; is there a different module that could work?)
Thanks.
Comment #8
ragavendra_bn commentedehuman is right..............
Comment #9
guypaddock commentedNote that this is now possible; please see #815482: PayPal Website Payments Standard: Convert negative line items to discounts and #815650: Remove "itemized cart" warning for PayPal payment method.