close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express Checkout option

Thread began 9/05/2013 9:55 am by eric284736 | Last modified 9/05/2013 1:49 pm by eric284736 | 21190 views | 17 replies |

eric284736

PayPal Express Checkout option

Hi Jason,

I need to setup PayPal Express as another option for payment on this site and when I originally ran the checkout wizard I think PayPal was added.
On the test page (checkout2.php) the PayPal button is near the bottom, but when I click on it I am redirected to the pp_checkout_failure.php page.
On that page I have error reporting in place and it see the following errors:

Notice: Undefined variable: eCart1 in /home/aerialda/public_html/pp_checkout_failure.php on line 9

Fatal error: Call to a member function IsEmpty() on a non-object in /home/aerialda/public_html/pp_checkout_failure.php on line 9

What I need to accomplish overall is to have PayPal as an option to make payment and then have it return to the site with the order success and send a universal email receipt with the link to download the purchase. That is how it is currently setup, but the payment method is using PayPal Pro to process the payments on the site. That function will stay in place.

thx
Eric

Sign in to reply to this post

Jason ByrnesWebAssist

the error is happening because the the following code at lines 14 - 20

php:
<?php

//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?>
<?php
$eCart1
->GetContent();
?>




needs to be at line 8


to determine why the transaction is failing, add the following code in the body:

php:
<?php @session_start(); var_dump($_SESSION); ?>



this will dump the session contents and will include the full response from paypal.

Sign in to reply to this post

eric284736

Okay this is the response:

array(8) { ["WAENCRYPTEDRETURNUSED"]=> bool(false) ["WAENCRYPTEDRETURNSUCCESS"]=> bool(false) ["eCart1_Items"]=> string(199) "13|WAECART|Beginning Aerial Fabric - Digital Download|WAECART||WAECART||WAECART|0|WAECART|1|WAECART|32.95|WAECART|6|WAECART|0|WAECART|32.95|WAECART|1 Beginning Aerial Fabric - Digital Download (13)" ["WAEC_ContinueRedirect"]=> string(47) "/shop-digital-detail.php?ItemID=13&ItemCateID=6" ["eCart_PPECO_System"]=> string(2) "US" ["PayPal_ECO_Token"]=> string(0) "" ["ECO_Auth_Request"]=> string(1622) "info@aerialdancing.comGCZNDZWDKMUM2DXMAmaGca1e39ivv-6Kp1Es3HEF1HDmAku8oYl2Yb7ylUzMrIkIcJOqPPFJ63.0http://aerialdancing.com/pp_confirm.phphttp://aerialdancing.com/pp_cancel.phpSoleBillingAuthorization
32.9532.95Beginning Aerial Fabric - Digital Download32.95113Authorization" ["ECO_Auth_Result"]=> string(2060) "2013-09-05T17:39:52ZFailurebce6292e28ec7Security errorSecurity header is not valid10002Error63.07560199" }
Warning: require_once(WA_eCart/Adv_CO_Scripts/PP_ECO_Authorize_PHP.php): failed to open stream: No such file or directory in /home/aerialda/public_html/pp_checkout_failure.php on line 24

Fatal error: require_once(): Failed opening required 'WA_eCart/Adv_CO_Scripts/PP_ECO_Authorize_PHP.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aerialda/public_html/pp_checkout_failure.php on line 24

Sign in to reply to this post

Jason ByrnesWebAssist

so the response from paypal is:

Security errorSecurity header is not valid


this means that the API Credentials entered for Express checkout are not correct

Sign in to reply to this post

eric284736

The Express credentials are different than the Pro credentials, correct?

Sign in to reply to this post

Jason ByrnesWebAssist

No, they are the same.

Sign in to reply to this post

eric284736

Duh! I had the wrong user name.

Okay so I set the return URL after PayPal processes and that would be the pp_confirm.php page or the pp_checkout_success.php page?
I need it to send the UE receipt with the download link like it would when an order is processed thru the local checkout.

thx
Eric

Sign in to reply to this post

Jason ByrnesWebAssist

return url should be the pp_confirm.php page.

add the UE Server behavior to that page also

If you use the checkout wizard to create the pages using paypal pro, it will set all this up for you

Sign in to reply to this post

eric284736

Got it, Thanks Jason!!

Sign in to reply to this post

eric284736

Okay, the pp_confirm.php is in place and I get this error:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/aerialda/public_html/pp_confirm.php:6) in /home/aerialda/public_html/pp_confirm.php on line 8

Fatal error: Call to undefined function WA_PP_ECO_GetValue() in /home/aerialda/public_html/pp_confirm.php on line 226

Sign in to reply to this post
loading

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