close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal Button not working

Thread began 4/24/2012 9:09 am by balusan317544 | Last modified 5/15/2012 2:41 pm by Jason Byrnes | 2216 views | 8 replies |

balusan317544Beta Tester

Paypal Button not working

Hello I looked at the known issues in Powerstore 3 and did not see this mentioned.
I created a new site and when we click the paypal button it gives an error message
'We're sorry
Your PayPal transaction could not be completed. Please return to checkout and try again.
the site was set up with paypal express clicked.'
I do not see the choice to pick paypal standard in the dropdown for payment options, which when I called Paypal will be the preferred way for us.
Please advise

Sign in to reply to this post

Jason ByrnesWebAssist

In Power Store 3, Paypal standard is not a supported gateway.


to troubleshoot the checkout failure, add the following code to the pp_checkout_failure.php page.

php:
<?php  

 
if(!session_id()) session_start(); 
 if(
$WAGLOBAL_Gateway == ) { 
     echo 
"<p>Direct Pay: <br />"
     echo 
"Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."<br /></p>";  
     echo 
"<p>Express Authorize <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br />"
     echo 
"<p>Express Process: <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>"
 } 
  
 if(
$WAGLOBAL_Gateway == 2) { 
     echo 
"<p>Auth Net: <br />"
     echo 
"Full Request: ".(isset($_SESSION['WAAuthNet_postedValues'])?htmlentities($_SESSION['WAAuthNet_postedValues']):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION['WAAuthNet'])?htmlentities($_SESSION['WAAuthNet']):"n/a")."<br /></p>"
 } 
  
  if(
$WAGLOBAL_Gateway == ) { 
     echo 
"<p>Express Authorize: <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br /></p>"
     echo 
"<p>Express Process: <br />"
     echo 
"Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>"
  } 
   
 if(
$WAGLOBAL_Shipping == 1) { 
     echo 
"<p>UPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>";  
 } 
 if(
$WAGLOBAL_Shipping == 2) { 
     echo 
"<p>FedEX: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";  
 } 
 if(
$WAGLOBAL_Shipping == 3) { 
     echo 
"<p>USPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>";  
 } 
?>



this will write the full request and full response being sent to / from the gateway to help us see what is wrong.

NOTE: the full request and full response will contain sensitive information that should be removed before posting here.

Sign in to reply to this post

balusan317544Beta Tester

pasted - return

This is part of the return answer, meaning the source code I see on the page I am returned to when having clicked the paypal button
function updateContant(thepage) {
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
return false;
}
}
}
xmlHttp.onreadystatechange=function() {
if(xmlHttp.readyState==4) {
if (xmlHttp.responseText != "") {
var contentArea = document.getElementById('content');
var responseText = xmlHttp.responseText;
var replaceWith = responseText.substring(responseText.indexOf('<div id='+'"content">')+18);
var replaceWith = replaceWith.substring(0,replaceWith.indexOf('<!-- Instance' + 'EndEditable -->'));
contentArea.innerHTML = replaceWith;
document.body.setAttribute("class",document.body.getAttribute("class").replace(' wait',""));
}
}
}


document.body.setAttribute("class",document.body.getAttribute("class") + ' wait');
xmlHttp.open("GET",thepage,true);
xmlHttp.send(null);

}

function isChildOf(ChildObject,ContainerObject)
{
var retval=false;
var curobj=ChildObject.parentNode;
var container = ContainerObject.parentNode;
while(curobj!=undefined)
{
if(curobj==document.body)
{ break;}
if(curobj==container)
{
retval =true;
break;
}
curobj=curobj.parentNode;//move up the hierarchy
}
return retval;
}

var lastHighlight = new Array();
function doHighlighlight(div) {

div.setAttribute('style',"background-color:#3375A2; color: white; border-top:0px;");
div.style.cssText = "background-color:#3375A2; color: white; border-top:0px;";
var y = 0;
for (var x=0; x<lastHighlight.length; x++) {
if (isChildOf(div,lastHighlight[x])) {
y=x+1;
}
else {
lastHighlight[x].removeAttribute('style');
}
}
lastHighlight = lastHighlight.slice(0,y);
lastHighlight[lastHighlight.length] = div;

}

Sign in to reply to this post

Jason ByrnesWebAssist

i think you must have put the code in the wrong place, it should be just before the closing </html> tag of the pp_checkout_failure.php page

Sign in to reply to this post

balusan317544Beta Tester

oops did this in checkout failure and not in pp.....

Hello Jason fixed this and retrying!

Sign in to reply to this post

balusan317544Beta Tester

I did now place in pp

response
if(!session_id()) session_start(); if($WAGLOBAL_Gateway == 1 ) { echo "
Direct Pay:
"; echo "Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."
"; echo "
Express Authorize
"; echo "Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."
"; echo "
Express Process:
"; echo "Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."
"; } if($WAGLOBAL_Gateway == 2) { echo "
Auth Net:
"; echo "Full Request: ".(isset($_SESSION['WAAuthNet_postedValues'])?htmlentities($_SESSION['WAAuthNet_postedValues']):"n/a")."
"; echo "Full Response: ".(isset($_SESSION['WAAuthNet'])?htmlentities($_SESSION['WAAuthNet']):"n/a")."
"; } if($WAGLOBAL_Gateway == 3 ) { echo "
Express Authorize:
"; echo "Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."
"; echo "
Express Process:
"; echo "Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."
"; } if($WAGLOBAL_Shipping == 1) { echo "
UPS:
"; echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."
"; } if($WAGLOBAL_Shipping == 2) { echo "
FedEX:
"; echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."
"; } if($WAGLOBAL_Shipping == 3) { echo "
USPS:
"; echo "Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."
"; echo "Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."
"; } ?>

Sign in to reply to this post

Jason ByrnesWebAssist

you are missing the opening "<?php" tag, it should not be showing the code on the page, but the results of the code

Sign in to reply to this post

balusan317544Beta Tester

php tag added, code returned

Server Not Found

The page "http://localhost/BeaconsOfLove/pp_checkout_failure.php" was not loaded because Dreamweaver could not find the server "localhost". Please make sure you are connected to the internet and the server name is correct.
If someone can call me I bought an SSl for this new site, however will not use it when I cannot use it with Paypal standard. !

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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