close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express - returning error message on failure page

Thread began 7/05/2011 12:41 am by Dave Buchholz | Last modified 7/05/2011 12:07 pm by Jason Byrnes | 1570 views | 5 replies |

Dave BuchholzBeta Tester

PayPal Express - returning error message on failure page

I have a cart where the only payment option is going to be PayPal Express but I cannot find a way to return an error message to the client when the transaction fails as there appears to be no bindings available with the "Long Error Message" that I have used before.

Am I missing something ?

THis is the standard page code created:

php:
<?php

//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?><?php
$eCart1
->GetContent();
?>
<?php
if ($eCart1->IsEmpty())     {
  
$eCart1->redirStr "/view-cart.php";
  
$eCart1->cartAction "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "")     {
  
header("Location: ".$eCart1->redirStr);
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="WA_eCart/CSS/eC_Clean_Slate_Arial.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="eC_Clean_Slate_Arial" >
    <h2>Transaction Not Completed</h2>
    <h3 class="eC_InfoHeader" >We're sorry</h3>
    <div class="eC_InfoContainer" >    
        <p class="eC_OrderInfo">Your transaction could not be completed.
        </p>
    </div>
</div>

</body>
</html>
Sign in to reply to this post

Jason ByrnesWebAssist

you need to add the bindings to the binding panel.


on the bindings panel, click the plus button. Select eCart -> Checkout -> PayPal Express Checkout.

There are three express checkout bindings group:
Authorize With Paypal Express Checkout
Get Payer Profile From Paypal Express Checkout
Process Transaction With Paypal Express Checkout

each one contains info about the three stages of the express checkout experience.

Sign in to reply to this post

Dave BuchholzBeta Tester

Jason,

which one will give me the error message after the payer goes to paypal and is returned to the site ?

Sign in to reply to this post

Jason ByrnesWebAssist

when the pp_confirm page loads, the Get payer profile behavior is executed, if there is an error in retrieving the payer profile, the Get Payer Profile From Paypal Express Checkout will contain that error.


when the user clicks the confirm order button, the transaction is processed with paypal. If an error occurs while processing the transaction, the Process Transaction With Paypal Express Checkout binding group will have the error.

Sign in to reply to this post

Dave BuchholzBeta Tester

thanks Jason

Sign in to reply to this post

Jason ByrnesWebAssist

no worries Dave.

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