close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal Integration

Thread began 9/09/2009 6:51 pm by rpereira311575 | Last modified 9/17/2009 5:30 am by rpereira311575 | 9204 views | 12 replies |

rpereira311575

Paypal Integration

Hello I have installed the powerstore2.0 on my url www.kamicreations.com, i have signed up for my paypal website payments pro canada account and have generated and inserted my api credentials into the global php page and uploaded it to the server but my website will not accept payments, please advise if there is something that I am missing.

Any help will be greatly appreciated.

RAHUL

Sign in to reply to this post

Jason ByrnesWebAssist

To troubleshoot the problem, add the following code to the checkout_failure.php page:

php:
<?php

if(!session_id()) session_start(); 
echo(
"PayPal Full Request :<br />");
echo(
"<code>".isset($_SESSION["PP_DirectPayment_postedValues"])?$_SESSION["PP_DirectPayment_postedValues"]:""."</code><br /><br />");
echo(
"Paypal Full Response :<br />");
echo(
"<code>".isset($_SESSION["PP_DirectPayment"])?$_SESSION["PP_DirectPayment"]:""."</code><br /><br />");
echo(
"USPS Full Request :<br />");
echo(
"<code>".isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?$_SESSION["WA_Store_Cart_USPS_FullRequest"]:""."</code><br /><br />");
echo(
"USPS Full Response :<br />");
echo(
"<code>".isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?$_SESSION["WA_Store_Cart_USPS_FullResponse"]:""."</code><br /><br />");
?>



This will write the Full Request and Full Response that are sent to PayPal and any shipping provider you have selected so we can get an idea of what is failing.


NOTE: The Full Request returned will contain you paypal api information, you should remove the api information when posting it in your update.

Sign in to reply to this post

rpereira311575

Tried the code

So I added your code to both the pp_checkout_failure.php and checkout_failure.php

when using the express checkout button I got this result

We're sorry

Your PayPal transaction could not be completed. Please return to checkout and try again.
PayPal Full Request :
Paypal Full Response :
USPS Full Request :
USPS Full Response :

when using a cc I got success

PLease advise

Sign in to reply to this post

Jason ByrnesWebAssist

A different set of session variables are created for the Express checkout request and response.

use this code on the pp_checkout_failure.php page:

php:
<?php

if(!isset(session_id)) session_start();
echo(
"Auth Request : <code>".$_SESSION["ECO_Auth_Request"]."</code>|<br /><br />");
echo(
"Auth Result : <code>".$_SESSION["ECO_Auth_Result"]."</code>|<br /><br />");
echo(
"Get Request : <code>".$_SESSION["ECO_Get_Request"]."</code>|<br /><br />");
echo(
"Get Result : <code>".$_SESSION["ECO_Get_Result"]."</code>|<br /><br />");
echo(
"Process : <code>".$_SESSION["ECO_Process_Request"]."</code>|<br /><br />");
echo(
"Process Result : <code>".$_SESSION["ECO_Process_Result"]."</code>|<br /><br />");
?>
Sign in to reply to this post

rpereira311575

When I pugged inthe code this page comes up when I select express checkout

Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /mnt/w0510/d27/s30/b0309927/www/pp_checkout_failure.php on line 141

Thank you

RAHUL

Sign in to reply to this post

Jason ByrnesWebAssist

Please post a copy of the pp_checkout_failure.php page so I can see the code at line 141 to trouble shoot the issue.

Sign in to reply to this post

rpereira311575

Here is the file

Attached Files
pp_check.zip
Sign in to reply to this post

Jason ByrnesWebAssist

line 141 should be:

php:
if(!session_id()) session_start();




sorry for that.

Sign in to reply to this post

rpereira311575

This is the result I get with the code in place

We're sorry

Your PayPal transaction could not be completed. Please return to checkout and try again.
Auth Request : <info removed>...http://www.kamicreations.compp_confirm.phphttp://www.kamicreations.compp_cancel.phpAuthorization|

Auth Result : <info removed>Transaction refused because of an invalid argument. See additional error messages for details.ReturnURL is invalid.10471ErrorTransaction refused because of an invalid argument. See additional error messages for details.CancelURL is invalid.10472Error2.20000000|

Get Request : |

Get Result : |

Process : |

Process Result : |

Sign in to reply to this post

Jason ByrnesWebAssist

The error message is saying the cancel and return URLs are not correct. They are being passed as:
http://www.kamicreations.compp_confirm.php
http://www.kamicreations.compp_cancel.php


The "/" character is missing the domain and page.


double check in the WA_Globals.php page the the $WAGLOBAL_Root_URL variable ends with a "/", for example:
$WAGLOBAL_Root_URL = "http://www.kamicreations.com/" ;

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