django-oscar-paypal icon indicating copy to clipboard operation
django-oscar-paypal copied to clipboard

Paypal email recipt has no description and always Qty 1.

Open st8st8 opened this issue 11 years ago • 4 comments
trafficstars

Whatever I buy from my Oscar shop, the email receipt that Paypal sends (both the customer and the merchant) has Qty 1 and no item descriptions, whatever I buy.

I wonder if this is because Paypal recommend that you send the same set of parameters for DoExpressCheckout as they list for SetExpressCheckout? At the moment, Django-oscar-paypal only sends a small set.

https://developer.paypal.com/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_NVP/

The example below is the email that Paypal sends when I make a purchase of two things costing 49p.


Dear NAME,

You sent a payment of £0.98 GBP to Steve Bradshaw's Test Store.

It may take a few moments for this transaction to appear in your account.


Merchant: Steve Bradshaw's Test Store [email protected]

Instructions to merchant: You haven't entered any instructions.


Purchase Details

Description: , No shipping required: Unit price: 0.98 GBP Qty: 1 Amount: 0.98 GBP

Subtotal: 0.98 GBP Postage and packaging£0.00 GBP Insurance£0.00 GBP

Insurance£0.00 GBP

Total: 0.98 GBP

Payment: 0.98 GBP Payment sent to: [email protected]


st8st8 avatar Aug 04 '14 10:08 st8st8

By jove you're right! If I manually force an item name within the do_txn method, then it does appear in the confirmation email. This seems like a bug with PayPal to me as they have all the information they need for the email - it seems silly to send it all again when confirming the payment. That email also has weird formatting glitches around the insurance totals.

We can of course work around this but it breaks several function signatures as the basket isn't passed around. Not sure when I will get round to this though.

codeinthehole avatar Aug 18 '14 15:08 codeinthehole

Is there any solution to this problem?

davethecipo avatar Feb 18 '18 21:02 davethecipo

I'm playing with an experimental fix to this:

https://github.com/st8st8/django-oscar-paypal/commit/6894e13d6391b1f7ee612462b041b9bfc37495ee

if you want to take a look...

st8st8 avatar May 22 '18 12:05 st8st8

I too experience this problem. Does the fix by @st8st8 work? Are there any other workarounds or fixes around?

mortlind avatar Nov 22 '18 17:11 mortlind