Jump to content



Discount Line Item not calculated

discount paypal calculation

  • Please log in to reply
No replies to this topic

#1   jerrygb

jerrygb
  • Members
  • 3 posts
  • Real Name:Jerry

Posted 24 July 2012 - 02:35 PM

Hi,

I am having trouble with Paypal Express Payment Calculation. I edited the express.php to add a Discount Line Item as shown in the parameters below,

Array
(
	[CURRENCYCODE] => CAD
	[L_NAME0] => 3 Styles of Earphone Dust cap for iPhone / iPad / iPod
	[L_DESC0] => 3 Styles of Earphone Dust cap for iPhone / iPad / iPod
	[L_AMT0] => 1.50
	[L_NUMBER0] => 119
	[L_QTY0] => 1
	[L_TAXAMT0] => 0.00
	[L_NAME1] => Discount 99BWEB
	[L_DESC1] => Special Discount for customers with Web Discount Code
	[L_AMT1] => -0.15
	[L_NUMBER1] => 0
	[L_QTY1] => 1
	[L_TAXAMT1] => 0.00
	[ITEMAMT] => 1.35
	[TAXAMT] => 0
	[ADDROVERRIDE] => 1
	[SHIPTONAME] => Customer Name
	[SHIPTOSTREET] => Address
	[SHIPTOCITY] => Montreal
	[SHIPTOSTATE] => QC
	[SHIPTOCOUNTRYCODE] => CA
	[SHIPTOZIP] => H2N1G6
	[L_SHIPPINGOPTIONNAME0] => Store Pickup (Call Customer Care -  (514)312-2231 to fix one of the below options,Two Options1. Pickup of the order in our Shop at Lasalle.2. Pickup of the items at any STM metro station of your convenience. Charges of $5 apply upon delivery.)
	[L_SHIPINGPOPTIONLABEL0] => Store Pickup (Call Customer Care - (514)312-2231 to fix one of the below options,Two Options1. Pickup of the order in our Shop at Lasalle.2. Pickup of the items at any STM metro station of your convenience. Charges of $5 apply upon delivery.)
	[L_SHIPPINGOPTIONAMOUNT0] => 0.00
	[L_SHIPPINGOPTIONISDEFAULT0] => true
	[L_SHIPPINGOPTIONNAME1] => Table Rate (Best Way)
	[L_SHIPINGPOPTIONLABEL1] => Table Rate (Best Way)
	[L_SHIPPINGOPTIONAMOUNT1] => 1.50
	[L_SHIPPINGOPTIONISDEFAULT1] => false
	[INSURANCEOPTIONSOFFERED] => false
	[SHIPPINGAMT] => 0.00
	[AMT] => 1.35
	[MAXAMT] => 102.85
)

However, the total price, after confirmation is still the price without the discount line item. That is 1.50$. I am billed full price by Paypal, when I am trying to buy the item on discount of 10%.

Could you please help me with this? Should I be adding the discount line item to database as well?

I thought that just the change with Paypal parameter list was enough. :wacko:

Note: I have tweaked the ot_total to reflect these changes (discount line), if there is in fact a valid discount code.

Edited by jerrygb, 24 July 2012 - 02:50 PM.