close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

product option price not correctly being sent to PayPal

Thread began 11/24/2015 1:30 pm by Christopher West | Last modified 11/24/2015 3:54 pm by Ray Borduin | 329 views | 1 replies |

Christopher WestCommunity Expert

product option price not correctly being sent to PayPal

Hi my client has informed me that customers are getting order failures.

After some real card transaction testing I have discovered that there is some logical error in how the product options that are in an array are not correctly being calculated when it gets to PayPal. Hmm.. well when adding a product with a chargeable product option is added to the shopping cart, I see they correct price calculated. And when getting to PayPal the correct price is shown at PayPal. but its getting sent back as an error.

I have attached the PayPal response error on a order I tested on. And I have included all 4 main .php files for you to have a look at. So I am a little stuck to see where the issue is.

the website is: www.dinkyfingerprint.co.uk

I thought it was to do with the data of birth format on a product option, but its happening on other product options that are chargeable.

for example have a look at these product pages of chargeable product options to see what I mean:

https://www.dinkyfingerprintjewellery.co.uk/Product/Small-Square-Fingerprint-Cufflinks

the below product you will also see chargeable product options on "charm type"
https://www.dinkyfingerprintjewellery.co.uk/Product/Individual-Fingerprint-Charm-Necklace

Not sure whats happening, since the correct calculation shows on the shopping basket page. Does the attached PayPal response error give any details?


If you could help that would be brilliant.

Chris

Sign in to reply to this post

Ray BorduinWebAssist

On line 59 of paypal-confirm.php you have:
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$DinkyCart->DisplayInfo("Price") ."";

It looks like it should be:
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$DinkyCart->DisplayInfo("TotalOptionPrice") ."";

To account for options that have an associated charge.

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

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...