PayPal Checkout Failure with Size Options
I added options to our website. Everything works great with credit card checkout but I have one problem with PayPal Checkout.
The options are size options for some products. Most options increase in price for larger sizes. I added some calculations such as [sizePriceInc] that reflects the price increase of the individual sizes and truePrice [Price] + [sizePriceInc] that reflects the new price of the product depending on the size option chosen.
So the eCart Object now reflects this with new or changed formulas:
OptionCode [optionCode]
SizeOptions [size]
truePrice [Price] + [sizePriceInc]
As mentioned, everything works perfect with credit card checkout. With PayPal = choosing an option and checking out with PayPal works great as long as the option has no price increase. Meaning that the option has the same price then the base price of the product:
Examplet:
Base Price of product = $8.95
Size 1 = $8.95
Size 2 = $ 8.95
So choosing size 1 or 2 and checking out with paypal works fine.
Once an option has an price increase = choosing paypal as a checkout option leads to an paypal checkout failure.
Example:
Base Price of product = $8.95
Size 1 = $10.95 (would be sizePriceInc of $2.00)
Size 2 = $12.95 (would be sizePriceInc of $4.00)
So I guess it must have something to do with either the new [sizePriceInc] or [truePrice] not being recognized in the pp checkout process. I thought It might have something to do with the Order Details in the “Process PayPal Express Checkout Transaction” server behavior on the pp_confirm.php page. So I changed the Amount{x+1} Value from <?php echo $eCart1->DisplayInfo("Price"); ?> to <?php echo $eCart1->DisplayInfo(“truePrice"); ?> to reflect the size price increase but that did not work either.
I hope I did explain my problem correctly (probably not).
Any ideas are greatly appreciated.
Thanks,
Joerg