Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Paypal - session logged out - please sign in again

Paypal - session logged out - please sign in again

Locked

Views: 10,681

Results 1 to 20 of 50
This thread is locked. New replies are disabled.
4 Mar 2007, 9:03 PM
#1
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Paypal - session logged out - please sign in again

Hi
I am having problems with Paypal modules.

  1. Trying to use Paypal IPN which seems to work okay if you already have an account set up - but if you want to pay by card you get the following error:
    "Your session has timed out, please log in again"
    Initially I never followed all the instruction and missed out the bit about amending the shop account. Hving done that I still have the same error message and I can not see what is wrong - any ideas?

  2. Having got annoyed with PayPal IPN - I tried Paypal express and installed it as per the instructions. This now gets to the very end and says it is unable to completed the transaction. I ran the debug script and as far as I can see this is the fault:


Request Headers: array (
0 => 'Content-Type: text/namevalue',
1 => 'X-VPS-Timeout: 45',
2 => 'X-VPS-VIT-Client-Type: PHP/cURL',
3 => 'X-VPS-VIT-Integration-Product: PHP::Zen Cart WPP-NVP',
4 => 'X-VPS-VIT-Integration-Version: 0.1',
)
Request Parameters: array (
'ITEMAMT' => '0.01',
'SHIPPINGAMT' => '0.84',
'AMT' => '0.85',
'L_NUMBER0' => '0',
'L_QTY0' => '1',
'L_NAME0' => 'A Widget for Testing',
'L_AMT0' => '0.01',
'L_TAXAMT0' => '0.00',
'SHIPTONAME' => 'John White',
'SHIPTOSTREET' => '16 Mill Hill Close',
'SHIPTOSTREET2' => '',
'SHIPTOCITY' => 'Shoreham by Sea',
'SHIPTOSTATE' => 'West Sussex',
'SHIPTOZIP' => 'BN43 5TP',
'SHIPTOCOUNTRY' => '',
'BUTTONSOURCE' => 'ZenCart-EC_us',
'TOKEN' => 'EC-25U4802********',
'PAYERID' => '5NUH7*********',
'PAYMENTACTION' => 'Sale',
'NOTIFYURL' => 'http://ttlntl.co.uk/shop/ipn_main_handler.php',
'METHOD' => 'DoExpressCheckoutPayment',
'CURRENCYCODE' => 'GBP',
'USER' => 'john_api1.ttlshop.co.uk',
'PWD' => '****************',
'VERSION' => '2.3',
'SIGNATURE' => '****************************************************RmhD',
)
Response: array (
'ACK' => 'Failure',
'L_ERRORCODE0' => '81210',
'L_SHORTMESSAGE0' => 'Invalid Parameter',
'L_LONGMESSAGE0' => 'Country : Invalid Parameter',
'L_SEVERITYCODE0' => 'Error',

Which I read as a fault in the country selection but that is correct as UK - anyone got any ideas ?

Failing that is there someone who could have a quick look at it for if I pm all the necessary details?

John

5 Mar 2007, 11:01 AM
#3
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

Okay I have updated the cart as suggested above and I have improvement.

  1. The Paypal IPN still refuses to play - the order appears to go through, the money is taken, the success email is sent but I do not receive an email with the order on it, nor does the order show up in the database.

So, I removed that mod and focused on the Paypal express.

  1. Success, customer can order, can pay, gets notification and I get notification of payment and also order details BUT ....
    I also get an email with the following:


IPN FATAL ERROR::Could not establish fsockopen. Host Details = www.paypal.com:80 (0) Failed to parse address ""

but everything is working fine.
So, I removed Paypay IPN from the cart, which is where I last saw this message, I unchecked the IPN button within paypal and still I am receiving this message - any ideas??

5 Mar 2007, 2:34 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

The express checkout module also triggers incoming IPN notices from PayPal. In many cases these are ignored for express checkout transactions ; however, in the case of delayed transactions such as echecks etc they are important for completing orders.

The IPN payment module itself relies on IPNs exclusively for order completion.

Your problem appears to be related to restrictions in your hosting configuration. I suspect that the error message you reported is caused by one or more of three conditions:
a) your server's SSL configuration isn't complete and thus your fsockopen() function calls are failing; or
b) your server has a block on external communications via fsockopen(); or
c) your server cannot successfully resolve DNS names to IP addresses during fsockopen() function calls.

You'll likely need to have your hosting company deal with this.

5 Mar 2007, 8:33 PM
#5
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

Hi
Been in touch with my hosting company and this was the reply - that
A - you do not need an SSL as PayPal handles this.
B - fsockopen is not disabled
C - The server DNS works fine.

Must admit this means nothing to me

Have you any other ideas?

5 Mar 2007, 8:53 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

In your Admin->Configuration->My Store settings, do you have CURL PROXY REQUIRED set to true ? If yes, why? What happens if you change it to false?

Who is your hosting company?

5 Mar 2007, 9:05 PM
#7
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

Just had a customer try to use the cart - this is his email

John
I tried buying by Paypal once again tonight, but still get 'session timed out'. I get a screen now showing my PayPal credit card details (with stars aand the last 4 numbers). I thought I would try to 'chnage' the credit card details (just to check it was still correct), and straight away I got 'session timed out' again. Went back to basics and went through the buying again and this time clicked on 'buy with credit card' The next screen was
'order accepted', order number 00000012 etc. But it didn't give me a chance to enter any crdeit card details!
Alan

The order notification came through to me but showed as a cheque/money order purchase.

Does that assist in trying to sort this out?

5 Mar 2007, 9:16 PM
#8
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

The hosting company is UKHost4U.com.

The Curl Proxy was enabled - I disabled it and ran a test purchase and it seems okay

I wonder if I could ask you to do a test purchase - there is a test purchase widget for 1p and a flat rate postage for 1p.

Of course I'll refund it back to you via paypal if it works.

site is www.ttlshop.co.uk

THanks
John

5 Mar 2007, 9:23 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

If you could indulge this customer (or someone else) to repeat the process again and take screen-shots of all error messages, that would be a help.

It sounds like the timeout errors occurred on the PayPal pages ... which Zen Cart has no control over.

It also sounds like when they returned to your site to try another payment option, they selected "Check/Money Order" for payment; hence the order coming through as such.

I see no timeouts on your Zen Cart site. They must all be on the PayPal end. Screenshots will be a huge help.

5 Mar 2007, 9:27 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

PayPal transaction completed without errors or difficulties.

5 Mar 2007, 9:39 PM
#11
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

Thanks - those tests went through okay and the notifications and money appeared. I have transferred the 2p back into your account - Thanks

5 Mar 2007, 9:41 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

Glad it's working.

Will be building in a test to make sure empty proxy settings are ignored in case someone else flips the same switch by mistake.

6 Mar 2007, 7:45 AM
#13
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

THanks - but just had this from the customer -

John
I can't purchse the widget. I tried PayPal .session timed out as soon as I click 'Buy'. I tried to enter my credit card details to see if that is possible, but as soon as I get to the 'Enter Code to Review Order' screen, everytime I enter the correct code it is wrong. If I click the 'Need Help' link, Quicktime reads out a different set of letters/numberes to what is displayed! I can onlt return to the shop and not get any further. Alan

Can't understand what he is doing wrong - I haven't got a "enter code to review order" box that I'm aware of and certainly not a "need help" link with quicktime.

I have asked him to explain but I am beginning to think his problem lies with PayPal

Have I missed something?

6 Mar 2007, 9:31 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

Yes, I think this is a PayPal interface problem. When a new customer attempts to pay via PayPal, they are prompted with a number of fields to complete. Some are CC-related. Some are personal information. At the end, there is a captcha screen where letters/numbers are displayed as graphics so as to avoid auto-form-filling by bots.

It seems that while navigating between these pages, the customers session is timing out and information is getting out of sync.

Things that might help narrow down the cause a bit would include:

  • what country is he in?
  • what currency is he paying with?
  • does he have a PayPal account already? If so is he using it in this test (I doubt it)

Step-by-step screenshots would be a lifesaver to show the PayPal tech staff exactly where the problem is occurring in relation to described actions.

8 Mar 2007, 2:13 PM
#15
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

sorry about this, but this member still can not purchase from my zencart - still getting session timed out warnings.

In order to check his account I re-opened my OSCommerce shop and asked him to purchase from that - he did so without a hitch.

I appreciate the two carts are different but are you aware of any fundamental differences between the two Paypal interfaces that could cause this problem - I have compared settings and can not see anything obvious.

Needless to say - I really want to move away from the OSCommerce cart as I prefer Zencart but for the sake of customers spending their money I might have to re-consider - please help :down:

9 Mar 2007, 4:44 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Paypal - session logged out - please sign in again

I have posted several questions above in order to collect information to find out what could possibly be causing this, as this is the only case I've heard of having the problem you mention. If you care to answer those, I might be able to investigate further.

12 Mar 2007, 5:01 PM
#17
thecomicbookshop avatar

thecomicbookshop

New Zenner

Join Date:
Mar 2007
Location:
Kingston upon Hull, United Kingdom
Posts:
8
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

I,m having this same problem with my site (www.thecomicbookshop.co.uk). It only hapens with some customers and others are able to check out just fine using Paypal. timeout seems to be happening while tey are at the Paypal site. I've tried to replicate the problem myself but it works fine everytime I try it with whichever brower I try so I've been at a complete loss as to what is causing the problem.

13 Mar 2007, 7:24 AM
#18
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

Thanks for that - I was beginning to think I was the only one and imagining the fault.

I'm sorry DrByte I did reply to you but have just noticed that it never showed - guess I didn't hit the post button.

Anyway the customer is from UK and buying in pounds.
He has an account but has the same problem whether he is using the account, or trying as a non-member with a different email address and credit card.

18 Mar 2007, 1:33 AM
#19
ttlntl avatar

ttlntl

New Zenner

Join Date:
Feb 2007
Posts:
31
Plugin Contributions:
0

Re: Paypal - session logged out - please sign in again

this problem still exists with that particular customer - is there a solution?
John

18 Mar 2007, 1:34 AM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Paypal - session logged out - please sign in again

Have you applied the latest patch to PayPal?
http://www.zen-cart.com/forum/showthread.php?t=56216