I get unable to process credit card payment error when using this module with uc_coupon.
I've talked to paypal, and in order to make coupons work, uc_payflowpro should add a negative line item. Right now, the order total is simply decreased by the coupon amount, generating an error because the sum of all items does not match the order total.
This potentially affects any other module that make use of ubercart line items.
Comments
Comment #1
kwinters commentedChanged to feature request, since uc_coupon isn't a core ubercart module and I wasn't specifically supporting it already.
I just placed a test order using uc_coupon 6.x-1.3 and uc_payflowpro 6.x-1.2, and it went through fine. $1.99 product, $1 off, and manager.paypal.com recorded a $0.99 charge as approved. So, I'll need detailed information so I can reproduce the error message.
Also, keep in mind that this may just be a bug in uc_coupon.
Comment #2
torgospizzaI am having this same issue but when checking out with Express Checkout. (Though I do seem to get it with credit card payments, albeit less often.) When I add a positive "discount" line item that is an absolute total of any discount items (including uc_discount and uc_gift_certificate amounts) then I am able to move to the PayPal sign-in page.
The only side-effect here is this particular parameter shows up as "Shipping discount" - I don't see a way to add a "Discount" line item in the $request array but I am contacting PayPal integration support now to try and work this out.
EDIT: After speaking with a Payflow integration person, there are two things to note:
1. The best way to do discounts is with negative line items, not the 'DISCOUNT' parameter (which is for Shipping discounts). So I will attempt to get this working and provide a patch once it does.
2. Negative line items (I think) are not activated by default. He checked our account and in fact this was true for us. After he updates it, the system must wait until the top of the hour for the changes to take effect.