close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Goes to pp_checkout_failure.php

Thread began 12/08/2010 6:06 am by bjgarner241692 | Last modified 12/08/2010 8:27 am by Jason Byrnes | 841 views | 1 replies |

bjgarner241692

Goes to pp_checkout_failure.php

Ran the wizard,
Used a sandbox seller address.
Published.
add to cart
go to checkout page
click Checkout with PayPal button
Immediately goes to pp_checkout_failure.php

I've tried a real pp address as well - same thing.
Regular checkout works fine

deleted, redid - same thing
deleted eCart, updated from 5.0 to 5.02 - same thing.

php:
<?php

$WA_PP_ECO_SetResult 
WA_PP_ECO_SOAPObject();
if ((
$_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))  {
  
$WA_PP_ECO_Set_params = array();
  
$WA_PP_ECO_Set_params[0] = array();
  
$WA_PP_ECO_Set_params[1] = array();
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "Username";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "bjgarn_1291760926_biz@execulink.com";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "System";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "WPPro";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "Currency";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "USD";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "OrderTotal";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "".$eCart1->GrandTotal()  ."";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "ReturnURL";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "http://___.____.ca/beta/pp_confirm.php";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "CancelURL";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "http://___.____.ca/beta/pp_cancel.php";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "PaymentAction";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "Authorization";
  
$nextIndex count($WA_PP_ECO_Set_params[0]);
  
$WA_PP_ECO_Set_params[0][$nextIndex] = "UseSandbox";
  
$WA_PP_ECO_Set_params[1][$nextIndex] = "true";

  
$WA_PP_ECO_SetResult WA_PP_ECO_Set_Post($WA_PP_ECO_Set_params);
  if (
$WA_PP_ECO_SetResult->isError) {
    if (
"pp_checkout_failure.php" != "") {
      
header("Location: ""pp_checkout_failure.php"); exit;
    }
  }
  else {
    
$eCart1->redirStr $WA_PP_ECO_SetResult->ECOServer;
  }
}
?>



Why does it say WPPro in the above code? Should it not say Standard or an abreviation thereof?

Sign in to reply to this post

Jason ByrnesWebAssist

This appears to be a bug in eCart when selecting to use PayPal Standard. I have logged this in the bug base.

To work around the issue, you will need to obtain API Credentials from paypal for use with Express Checkout.

Once you have obtained the api credentials, open the cehckout page and double click the "Authentication For PayPal Express Checkout" server behavior.

change the System to US and paste the API Username, password and signature into the appropriate places.

You will also need to edit the "Get Payer Profile For Paypal Express Checkout" and the "Process transaction with PayPal express Checkout" behaviors on the pp_confirm page.

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