close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express checkout ClientXML Syntax error

Thread began 4/22/2015 12:20 pm by eric284736 | Last modified 4/23/2015 2:36 pm by Ray Borduin | 1903 views | 7 replies |

eric284736

PayPal Express checkout ClientXML Syntax error

Hi Jason,

I am getting a full response error SOAP-ENV: ClientXML syntax error. I also show a syntax error on the pp_confirm.php page. This was setup using the checkout wizard..
Any ideas?

thx
Eric

Sign in to reply to this post

eric284736

see pm

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the page is adding too many decimals when passing the amounts to paypal. If you send me your confirm.php page I can tell you the lines to update in that one. On the pp_confirm you would update line 97 to:

$WA_PP_ECO_Do_itemized[1][0] = "".number_format($eCart1->GrandTotal(),2) ."";

update line 103 to: $WA_PP_ECO_Do_itemized[1][$nextIndex] = "".number_format($eCart1->DisplayInfo("Price"),2) ."";

and update line 132 to: $WA_PP_ECO_Do_optional[1][$nextIndex] = "".number_format($eCart1->TotalColumn("TotalPrice"),2) ."";

All I'm doing is finding the dollar values and using number_format() to make sure they only pass two decimals. You could probably find the same three lines on your confirm page without me, but if you send it to me I can tell you directly.

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

eric284736

Hi Ray,

Here is the page.

Thx!!
Eric

Sign in to reply to this post

eric284736

Actually I think it is the pp_confirm.php page?

Attached Files
pp_confirm.zip
Sign in to reply to this post

Ray BorduinWebAssist

The lines in the pp_confirm.php page are the ones I've already provided.

On the confirm.php page the lines and new code are:

line 50 to:

$WA_PP_ECO_Set_params[1][$nextIndex] = "".number_format($eCart1->GrandTotal(),2) ."";

update line 58 to:

$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".number_format($eCart1->DisplayInfo("Price"),2) ."";

and update line 77 to:

$WA_PP_ECO_Set_params[1][$nextIndex] = "".number_format($eCart1->TotalColumn("TotalPrice"),2) ."";

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

eric284736

Thanks Ray, I updated both page and it still goes to the checkout_failure.php page with the authorize full response stating:
SOAP-ENV:ClientXML syntax error

Sign in to reply to this post

eric284736

Ray I think it might be something with the product titles that are passed to PayPal. I think I might have fixed it. Double checking now.

thx
Eric

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