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
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
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.
Actually I think it is the pp_confirm.php page?
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) ."";
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
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
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.