When using uc_coupon with PayPal, a warning appears: To use coupons with PayPal you must select "Submit the whole order as a single line item". However, module works well (in my case) with PayPal even though orders are submitted in the itemised fashion, and not as a single line item.

Comments

Rafal Lukawiecki’s picture

Title: Possibly an unnecessary warning appears about coupon usage with PayPal » Coupon usage with PayPal
Category: bug » feature

I'm afraid it is not as I described. It all works flawlessly but only in the PayPal Sandbox. Order stays at the "Pending" stage forever, when used with live PayPal servers. It would be great to have that option, as the itemised order looks much better and more trustworthy than the summary.

I have only tested this with WPS.

wodenx’s picture

Status: Active » Postponed (maintainer needs more info)

Are you getting any error notifications from paypal on the live servers? How does the transaction appear in their logs? This doesn't sound like the kind of issue that would, in itself, be different from one env. to the other. Often differences between sandbox and live have to do with user account verification or some other cause of a payment not being authorized.

Rafal Lukawiecki’s picture

The IPN has been received, is in the drupal log, and UC has recognised the payment, and recorded it against the order. I can see that by looking at the order using the store admin interface. However, the order is stuck at "pending" stage. Changing the setting to submit order as a whole, as instructed by uc_coupon message, makes the problem go away.

wodenx’s picture

Is the payment total correct and the order balance correctly set to 0?

wodenx’s picture

Also can you enable "Show debug info in the logs for Instant Payment Notifications." on the paypal WPS settings page, and then compare the IPN notifications that are coming in from sandbox with those coming in from live?

Rafal Lukawiecki’s picture

The payment total was correct and the balance was zero. The IPN looked good too, but I am quoting that from memory. I will run a new test early next week, as I am travelling at the moment. Thanks for those suggestions, will get you some answers.