uc_discounts Module does not transfer discount information to PayPal payment module

myke - December 13, 2008 - 07:22
Project:UC Discounts
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

The uc_discounts module is not sending the discount information or the discounted price to PayPal. It works for Money Orders / Checks but not for PayPal.. It shows the correct discounted total at checkout, but PayPal charges the non-discounted price!

#1

myke - December 13, 2008 - 17:38

The balance on the order also shows a negative number, the amount the user was over charged on.

#2

myke - December 19, 2008 - 20:00

I had a little bit of time to look at this today. The form sending data over to PayPal has the items' full price, with no mention of the discount.

Now, I'm not sure yet if this needs to be fixed in Discounts, or in PayPal. Is the PayPal module not handling line items properly?

I'm looking through code to try and figure this out..

Thanks
-Myke

#3

myke - December 25, 2008 - 06:07

Turns out, the problem ISN'T in the UC Discounts module.. It's in the PayPal WPS, when sending an itemized list, non-standard line items aren't figured in for PayPal:

http://www.ubercart.org/comment/30007/Re_UC_Discounts_not_sending_discou...
http://www.ubercart.org/comment/30053/Bug_found_not_fixed_yet

If you set the WPS to NOT send an itemized list to PayPal WPS, then the correct total amount is sent, taking into account the UC Discounts and Coupon modules..

-Myke

 
 

Drupal is a registered trademark of Dries Buytaert.