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

Anonymous’s picture

This 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.

green monkey’s picture

thank you for this post

longwave’s picture

Status: Active » Fixed

Thanks, this information has been noted in the module description.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ehuman’s picture

We need the itemized cart data for accounting purposes. This is not really a fix, therefore. Does anyone have any other info?

longwave’s picture

PayPal 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.

iomatic’s picture

Well, 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.

ragavendra_bn’s picture

ehuman is right..............

guypaddock’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.