Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 03-01-2006 14:12:11

LexFrost
Member
Registered: 07-22-2005
Posts: 48

Pending Payment On Both Paypal And 2checkout

I have CCP 5.1 and I just finished designing the site and I placed a bunch of test orders last night and ran into some problems.

First off, if Paypal has the "auto return" turned on, which automatically returns you back to CCP after the transaction, it just brings the customer to the front page and does not display the order confirmation. If I look in the admin panel the order shows "pending shipment" which means everything went through great but the customer never sees the confirmation (testing it myself, I even notice that the URL shows all the return code but again I just get brought to the main page, no confirmation), anyone know anything about this ... on a side note if I turn off "auto return" in paypal (which forces the customer to click the paypal continue button) once the customer clicks the continue button it does redirect them back to CCP and DOES show them the order confirmation, BUT if I look at the admin panel the order shows up as Pending Payment ... its really weird no matter what I choose I can't win!

As for 2checkout, I have it set to redirect back to CCP and that works fine Execpt that all my orders show up as Pending Payment but I know they completed because they were my credit cards! I cannot understand why it does not show Pending Shipment?

Does anyone have any thoughts on this?

Thank you,

Lex

Offline

 

#2 03-02-2006 13:21:00

LexFrost
Member
Registered: 07-22-2005
Posts: 48

Re: Pending Payment On Both Paypal And 2checkout

Has anyone actually gotten the Paypal auto-redirect to work? I would really prefer using that feature as a lot of customers "forget" to press the continue button.

Offline

 

#3 03-02-2006 16:49:35

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

I'm using PayPal standard and Pro, and having no problems.  I dind't do any special setup to get it to work - just filled in user information and it worked fine.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#4 03-02-2006 18:40:37

LexFrost
Member
Registered: 07-22-2005
Posts: 48

Re: Pending Payment On Both Paypal And 2checkout

Do you have the Auto-redirect option turned on in your paypal account so that when a custumer finishes the paypal part of the order they are auto-redirected back you your shopping cart without having to click the paypal continue button?

I ended up getting the continue button option to work just fine, but I really want the auto-redirect to work ... as of right now, it just brings the customer back to the Splash page and not the order confirmation page but if you look at the URL code at the top it has all the information that paypal passes back to the cart ... its like CCP is just ignoring it or does not understand it.

Thank you,

Lex

Offline

 

#5 03-02-2006 18:48:20

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

I do have the auto-return set to on, in PayPal; but I just have it pointed to wwwmysite.com.  It was actually left over that way from when I was using the PayPal add to cart buttons on static html pages and using their cart.  I only actually ran one transaction with PayPal standard when I first set up CCP, but it brought me back to the confirmation page just fine.  I didn't do anything special to set it up, so I'm not sure why yours isn't working.  Sorry.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#6 04-25-2006 08:51:37

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Just to follow up on this, I've been doing some more checking.  And I too was having customers returned to the home page with the auto-return set to on - they didn't get their order confirmation.  But I found that if I turned off the auto-return and cleared the address from that field in the PayPal preferences, the customer would get returned to the confirmation page.  Yes, they have to click a continue button, but at least they get the order confirmation.  I have not yet found a way to get them to the confirmation page automatically.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#7 07-10-2006 22:57:37

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

On the subject of the PayPal auto return, I think I've come up with a solution for this.  It requires a change to ste_olp.pl.  Edit the file and around line 2141, you'll find the following code:

Code:

print <<ENDOFTEXT;
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="_ext-enter">

<INPUT TYPE="HIDDEN" NAME="amount" VALUE="$tracking_total">

<INPUT TYPE="HIDDEN" NAME="redirect_cmd" VALUE="_xclick">

<INPUT TYPE="HIDDEN" NAME="return" VALUE="$common_url_form">

<INPUT TYPE="HIDDEN" NAME="cancel_return" VALUE="$common_url_form?payment_status=Cancel&item_number=$tracking_id">
ENDOFTEXT

Change the above to:

Code:

print <<ENDOFTEXT;
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="_ext-enter">

<INPUT TYPE="HIDDEN" NAME="amount" VALUE="$tracking_total">

<INPUT TYPE="HIDDEN" NAME="redirect_cmd" VALUE="_xclick">

<INPUT TYPE="HIDDEN" NAME="return" VALUE="$common_url_form?payment_status=Completed&item_number=$tracking_id">

<INPUT TYPE="HIDDEN" NAME="cancel_return" VALUE="$common_url_form?payment_status=Cancel&item_number=$tracking_id">
ENDOFTEXT

Then, go into your PayPal profile, under Website Payment Preferences, and set Auto Return to 'On'.  Put in your site's URL for the Return URL - any will work, as the URL entered there won't actually be used anyway.  PDT and IPN should be set to 'Off'.  Now, at the completion of the payment, the users will get automatically redirected back to your site.  I've run a few test transactions with mine set up this way and it seems to work just fine.  Of course, back up everything and use this at your own risk - it hasn't been that extensively tested yet, so you are responsible.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#8 08-08-2006 18:27:20

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Re: Pending Payment On Both Paypal And 2checkout

HI,

I have added this change, but the paypal orders have gone wrong since this change (this could be nothing to do with the mod above) so I have changed back to test it.

As the last 2 customers have been getting this error in ccp but the payment is going through and sending the emails from ccp, for the order.

file:  ste_order_faildata

Online Store - Order Failure - Data Error


I have never had this error before , so i am testing to see if its the mod or something else causing this.

cheers
Charlie

Offline

 

#9 08-08-2006 18:29:51

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Hi Charlie,

I've been using the mod for a while without any problems.  It could be a combination of this mod with some other mod you have maybe?  Otherwise, I would think it is probably totally unrelated, since I know several other people are using this one without a problem as well.  Let me know what you find out from your testing.

Rachael


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#10 01-15-2007 10:39:44

stevevr
Member
Registered: 12-20-2006
Posts: 5

Re: Pending Payment On Both Paypal And 2checkout

rachaelseven wrote:

I'm using PayPal standard and Pro, and having no problems.  I dind't do any special setup to get it to work - just filled in user information and it worked fine.

Rachael

Hi Rachel I am having problems with the paypal auto retun page, I have copied the code as per your previous post but it still sends me to my home page.

This is coming up in the URL on my home page. Any ideas?
http://www.myhome247.co.uk/cgi-bin/cp-a … 3U&st=
Completed&amt=0.01&cc=GBP&cm=51F1262207&sig=QGr%2bvITM3pPNnpjJg6b6mazduVjA63kYyvI
CiP9XTd8ztApk8urM5Q8R6z9BK5Q811bE3t9LNMYrC1V5BmBkbSbdvRgiLOTSxVJETGIeEe3S8O4c1%2b2cjUVoH%2f0RAUytju
9B5iS1iRNm2mHMUoO7BnvlL%2fm9UEk2AtI59N7f%2f4U%3d

Regards

Steve

Offline

 

#11 01-15-2007 11:06:15

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Did you also update your PayPal settings as detailed in the post?

Then, go into your PayPal profile, under Website Payment Preferences, and set Auto Return to 'On'.  Put in your site's URL for the Return URL - any will work, as the URL entered there won't actually be used anyway.  PDT and IPN should be set to 'Off'.

Other than that, the only thing I can suggest is to make sure the code mods were implemented correctly.  As far as I know, unless PayPal has changed something, this should work correctly.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#12 01-15-2007 11:28:51

stevevr
Member
Registered: 12-20-2006
Posts: 5

Re: Pending Payment On Both Paypal And 2checkout

Rachel I have done that and it still goes back to my main page. In fact we have never had a order confimation page on our website.

Steve

Offline

 

#13 01-15-2007 14:15:17

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Can you get an order confirmation page if you use a non-payment method like Pay-by-Phone or Contact Customer?  If not, you probably have some other problem completely unrelated to PayPal.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#14 01-15-2007 14:21:59

stevevr
Member
Registered: 12-20-2006
Posts: 5

Re: Pending Payment On Both Paypal And 2checkout

What I really need is for my paypal to retun to wwwmyhome247.co.uk/confirmation.html. I need it to do this in order to run a script that my 3rd party affiliate company gave me. But paypal once the transaction complete keeps taking me to the home page. All i need to do is run this below in a page that is re-directed after payment. 

<!-- Pay Pal Tracking code -->
<script Language="JavaScript">

//
// QueryString
//

function QueryString(key)
{
var value = null;
for (var i=0;i<QueryString.keys.length;i++)
{
if (QueryString.keys[i]==key)
{
value = QueryString.values[i];
break;
}
}
return value;
}

QueryString.keys = new Array();
QueryString.values = new Array();

function QueryString_Parse()
{
var query = window.location.search.substring(1);
var pairs = query.split("&");

for (var i=0;i<pairs.length;i++)
{
var pos = pairs[i].indexOf('=');
if (pos >= 0)
{
var argname = pairs[i].substring(0,pos);
var value = pairs[i].substring(pos+1);
QueryString.keys[QueryString.keys.length] = argname;
QueryString.values[QueryString.values.length] = value;
}
}

}

QueryString_Parse();

</script>

<script language="javascript"
src="http://scripts.affiliatefuture.com/AFFunctions.js"></script
<http://scripts.affiliatefuture.com/AFFunctions.js> >
<script language="javascript">

var merchantID = 2201;
var orderValue = QueryString("amt");
var orderRef = QueryString("tx");
var payoutCodes = '';
var offlineCode = '';

AFProcessSaleV2(merchantID, orderValue,
orderRef,payoutCodes,offlineCode);
</script>
<!-- End Pay Pal Tracking code -->



ANY IDEAS? ALSO DO YOU DO ANY API INTEGRATION IN CCP? WE HAVE AN SMS API THAT NEEDS INSERTING INTO OUR CUSTOMER MEMBERS AREA>

STEVE

Offline

 

#15 12-20-2007 14:39:35

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

I have tried everything I could find here on the forum for returning from PAYPAL and I keep getting a url like this

***https://www.paypal.com/us/cgi-bin/%24common_url_form?payment_status=Completed&item_number=%24tracking_id

(less the stars , I has to put that to show the whole url)

anybody have this problem ?

Last edited by ghost1157 (12-20-2007 14:40:51)

Offline

 

#16 12-20-2007 15:47:45

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Never seen that problem.  %24 is a URL encoded dollar sign, which means that the dollar sign in the code above is being taken as a literal, rather than evaluating to a variable name, as it should.  The expression:

Code:

$common_url_form

is a variable that should evaluate to your site's URL.  And the other expression:

Code:

$tracking_id

is a variable that should evaluate to the order number for the order in question.  The fact that both of those are failing to evaluate and are being shown as literals in the resulting URL means that you have done the modifications I suggested incorrectly in some way.  Within a PERL script, $anything will always evaluate to something and not show literally, so something is definitely wrong with your implementation of the mod.  Can you post the short section of code you changed according to my instructions?


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#17 12-20-2007 16:03:22

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

} else {

print <<ENDOFTEXT;
<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="_ext-enter">

<INPUT TYPE="HIDDEN" NAME="amount" VALUE="$tracking_total">

<INPUT TYPE="HIDDEN" NAME="redirect_cmd" VALUE="_xclick">

<INPUT TYPE="HIDDEN" NAME="return" VALUE="$common_url_form?payment_status=Completed&item_number=$tracking_id">

<INPUT TYPE="HIDDEN" NAME="cancel_return" VALUE="$common_url_form?payment_status=Cancel&item_number=$tracking_id">
ENDOFTEXT

} ######### End of if statement.

Offline

 

#18 12-20-2007 16:05:01

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

This may be due to the paypal form in manage payments , there is similar code there that I messed with , and I can't find a backup to go back to .

Offline

 

#19 12-20-2007 16:07:03

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

Here is the payment form contents , I XXX out the business name for the forum ...


<FORM METHOD="POST" ACTION="https://www.paypal.com/cgi-bin/webscr">

<!-- ### -->
<INPUT TYPE="HIDDEN" NAME="business" VALUE="XXXXXXXXXXXXXX">
<!-- ### -->

<INPUT TYPE="HIDDEN" NAME="bn" VALUE="(CGIVAR)release_verbuild(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="item_number" VALUE="(CGIVAR)tracking_id(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="custom" VALUE="(CGIVAR)fd_usr(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="amount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="first_name" VALUE="(CGIVAR)tracking_firstname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="last_name" VALUE="(CGIVAR)tracking_lastname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address1" VALUE="(CGIVAR)tracking_addressone(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address2" VALUE="(CGIVAR)tracking_addresstwo(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="city" VALUE="(CGIVAR)tracking_city(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="state" VALUE="(CGIVAR)tracking_stateabbus(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="country" VALUE="(CGIVAR)tracking_countryabb(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="zip" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="email" VALUE="(CGIVAR)tracking_email(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="return" VALUE="(CGIVAR)common_url_form(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="notify_url" VALUE="(CGIVAR)common_url_form(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="item_name" VALUE="Online Order">

<INPUT TYPE="HIDDEN" NAME="cmd" VALUE="_ext-enter">

<INPUT TYPE="HIDDEN" NAME="redirect_cmd" VALUE="_xclick">

<INPUT TYPE="HIDDEN" NAME="return" VALUE="$common_url_form?payment_status=Completed&item_number=$tracking_id">

<INPUT TYPE="HIDDEN" NAME="cancel_return" VALUE="$common_url_form?payment_status=Cancel&item_number=$tracking_id">
<INPUT TYPE="HIDDEN" NAME="undefined_quantity" VALUE="0">
<CENTER>

<INPUT TYPE="IMAGE" SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_submit.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0" VALUE="submit"> <A HREF="(CGIVAR)common_url(/CGIVAR)&pg=cancel"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_cancel.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0"></A>

</FORM>

</CENTER>

Offline

 

#20 12-20-2007 17:22:41

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Pending Payment On Both Paypal And 2checkout

Yup, that's your problem.  Change the contents of the PayPal form in the management section back to:

Code:

After verifying your order information and clicking the 'Submit' button, you will be directed to Pay Pal's secure site to enter your payment information. Once your payment information is entered and verified, you will be directed back to this web site for your order confirmation.<BR><BR>

<FORM METHOD="POST" ACTION="https://www.paypal.com/cgi-bin/webscr">

<!-- ### -->
<INPUT TYPE="HIDDEN" NAME="business" VALUE="your_username">
<!-- ### -->

<INPUT TYPE="HIDDEN" NAME="bn" VALUE="(CGIVAR)release_verbuild(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="undefined_quantity" VALUE="0">

<INPUT TYPE="HIDDEN" NAME="item_name" VALUE="Online Order">

<INPUT TYPE="HIDDEN" NAME="item_number" VALUE="(CGIVAR)tracking_id(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="custom" VALUE="(CGIVAR)fd_usr(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="first_name" VALUE="(CGIVAR)tracking_firstname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="last_name" VALUE="(CGIVAR)tracking_lastname(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address1" VALUE="(CGIVAR)tracking_addressone(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="address2" VALUE="(CGIVAR)tracking_addresstwo(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="city" VALUE="(CGIVAR)tracking_city(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="state" VALUE="(CGIVAR)tracking_stateabbus(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="country" VALUE="(CGIVAR)tracking_country(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="zip" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="email" VALUE="(CGIVAR)tracking_email(/CGIVAR)">

<INPUT TYPE="HIDDEN" NAME="notify_url" VALUE="(CGIVAR)common_url_form(/CGIVAR)">

(CGIGET TYPE="SUB" VALUE="ste_olp_recur" PARAMS="ste_gw_paypalpp")

<CENTER>

<INPUT TYPE="IMAGE" SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_submit.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0" VALUE="submit"> <A HREF="(CGIVAR)common_url(/CGIVAR)&pg=cancel"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_cancel.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0"></A>

</FORM>

</CENTER>

Of course, don't forget to put in your account in the appropriate spot.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#21 12-20-2007 18:40:34

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

Okay , so with this form and your mod , should I have return url turned on in paypal or off ?

Offline

 

#22 12-20-2007 18:52:30

ghost1157
Member
Registered: 02-19-2003
Posts: 93

Re: Pending Payment On Both Paypal And 2checkout

Nevermind , I have it working now !

Thanks Rachel , you rock !

Offline

 

Board footer