If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / Paypal supports negative amounts as line items now

Paypal supports negative amounts as line items now

Locked

Started by nelson on 15 Apr 2009, 12:41 PM · Views: 5,924

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Apr 2009, 12:41 PM
#1
nelson avatar

nelson

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
1

Post #1 by nelson

Hooray!

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing

(4) – Item unit price. This field specifies exactly how much one unit of the item costs. It can be a positive or negative value but not zero.

L_AMTn - Amount - Item unit price. PayPal calculates the product of the item unit price and item unit quantity (below) in the Amount column of the PayPal Review page, as shown in PayPal Review Page With Order Details. The item unit price can be a positive or a negative value but not 0. You may provide a negative value to reflect a discount on an order, for example.

The problem I am having with Express Checkout in Zencart 1.3.7 with the June 17 patch is discount coupons. If the three checkout steps are done first with a discount code then Paypal does not show line items and also shows the incorrect total (without the discount). It still works and charges the discounted total in the end, but customers are confused and are not finishing orders because they think it's broke.

Just curious if someone more qualified like DrByte and familiar with the code would be able to figure out or help me with code to add discounts as a line item now that Paypal supports it?

15 Apr 2009, 2:05 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

There is no further development happening on v1.3.7 or v1.3.8. Only security patches will be released for those versions, if necessary.

The "negative amounts as line items" functionality has been in testing with mixed results (some good, some bad) for the v2.0.0 release. It is uncertain to what degree it will be implemented in the final 2.0.0 product. Final determination will be a result of internal testing and beta testing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Apr 2009, 2:28 PM
#3
nelson avatar

nelson

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
1

Post #3 by nelson

Thanks DrByte, as always it's amazing how fast you respond.

Guess I will just try to fix this bug on my own.