close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Checkout Failure with Size Options

Thread began 2/03/2016 12:57 pm by joerg431091 | Last modified 2/04/2016 3:29 pm by Ray Borduin | 969 views | 4 replies |

joerg431091

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

Sign in to reply to this post

Ray BorduinWebAssist

Please send a copy of your confirm.php and pp_confirm.php pages and I'll make sure you made the updates in the correct locations.

Sign in to reply to this post
Did this help? Tips are appreciated...

joerg431091

Awesome. Thanks so much Ray. Please see attachments.

Sign in to reply to this post

Ray BorduinWebAssist

Lines 119, 256 of the confirm.php page has to be updated to "truePrice"

line 103 of pp_confirm.php has to be updated to "truePrice"

Sign in to reply to this post
Did this help? Tips are appreciated...

joerg431091

That did the trick. Fantastic.

Thanks so much Ray.

Best,
Joerg

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...