osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 19

PayPal Express always returns to login.php

This is a discussion on PayPal Express always returns to login.php within the Paypal forums, part of the Payment Modules category; Hi Folks, PAYPAL EXPRESS V1.00/OSCMax V2.0.25 This is only my second posting and I am a novice so bare with ...

      
  1. #1
    New Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0


    Default PayPal Express always returns to login.php

    Hi Folks,

    PAYPAL EXPRESS V1.00/OSCMax V2.0.25

    This is only my second posting and I am a novice so bare with me. I have spent a couple of months getting my site ready and I have worked through all other issues from your excellent postings. I am now dead in the water with this final payment module.

    The problem I am having is with Paypal Express and I am hoping you can help me. This is going to sound unbelievable! Yesterday the PAYPAL EXPRESS payment module worked fine i.e. I could successfully complete a checkout and payment. Then when I go to do a final test today this is what happens. Test customer has product in cart. He hits checkout button and is directed to checkout_shipping.php. He hits continue and is redirected to checkout_payment.php. He hits continue and is redirected to PAYPAL. All OK so far. He logs on to paypal and hits continue AND THEN IS REDIRECTED BACK TO LOGIN.PHP. The process has logged him off his account and his cart shows empty. If he logs on again, his cart shows the item still exists in his cart. Trying to checkout again just loops around as above and checkout never succeeds. Nothing has been altered on the site in /ext/modules/payment/paypal/express.php or /includes/modules/payment/paypal_express.php. I have checked stock and all is OK.

    Strangely, a week ago this same problem happened. I sent a message to a PAYPAL Integration Engineer (who had helped me set up the API initially) and went to bed - it was damn late and I was frazzled. Low and behold when I went back to the site next day everything worked fine - I was able to complete confirmation of an order and got the order completed/success page. I contacted the PAYPAL IE and said don't worry, everything was now fine. I felt embarassed and put it down to lack of sleep or finger problems. Now it appears there is a real problem.

    Today I have my problem back. I haven't altered anything and again I am being redirected to login.php. What is going on here? Can anyone shed some light as to where I should be looking? I have viewed express.php and the return URL seems OK. As I said I haven't edited any files since this was working fine. I am completely lost for an explaination - especially since this has now happened twice.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Arrow Re: PayPal Express always returns to login.php

    Assumes this is the US version.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    New Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    It is the standard PAYPAL EXPRESS module which I believe is the U.S. version. It is the one that just says "Paypal Express Checkout" and does not have any (UK) affiliations. I am located in Australia and was directed to use this module by the Paypal Integration Engineer (who happens to have a California telephone number +1 408 etc but resides in India!).

    Guess what I logged into my website today and as per the first time this problem occured, I now have no problem performing a transaction. Why would this occur one day and not the next? Twice this has fixed itself by me just waiting until the next day. Do you have any idea what might be happening?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: PayPal Express always returns to login.php

    Bad cookie or session. If you clear your browser cookies it will also resolve the problem. It resolves itself because the session cookie expires overnight and you start with a clean browser session.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Thank you Michael. I did clear out all cookies, temp files stc. in my browser when both times this happened and restart the browser yet it only seemed the "overnight wait" that cleared things. Do you have any suggestions as to why these bad cookies crop up and why the clearing of the browser did not work? Also , forgive my ignorance also but what is the distinction between bad cookie or session in this scenario?

  6. #6
    New Member
    Join Date
    Feb 2011
    Posts
    10
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Hi, I too have a problem with setting up paypal express in oscmax. When I set it up in Admin, it was activated and the button appeared just below the checkout button. But when you click it to make a payment, it always comes back to the login page. As far as I know, paypal express enables visitors to pay without going through the process of creating an account. Is this correct? Or do they still need to create an account when paying with paypal express? I've tried looking for the way to install the Paypal Express (PE), however the only documentation that I can get is the wiki, which tells you nothing but repeating the information from the admin section, such as API, etc.

    I've also suspected that I need to have a paid subscription with payapl before I can accept the paypal express, is this true? However, the pricing table that I found from paypal clearly states that the use of paypal express is free.

    Could anyone please clear this up for the rest of us? I'm pretty sure there are a lot of people wondering the same thing, but just never get around to ask.

    nb:
    Oh by the way, this is not a cookie problem

    Lukas

  7. #7
    New Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    I hope I have understood your questions and the following helps.

    If you are a store customer, and select the paypal payment option, Paypal Express will provide you two options when redirected to the paypal web site :-

    a) login in to your existing paypal account and pay for your purchase

    or

    b) pay by credit card without using a paypal account.

    If you are the web store owner, you need a paypal account to accept paypal express payments. You also need a paypal account to transfer any payments to your bank accounts, do other transfers, issue refunds etc. You will be charged by paypal a percentage of each transaction as their fee for using their paypal express service. Best advice is to contact paypal via their website and they will get an Integration Engineer to help you through the set up process - there is no charge for this service and they are particularly helpful.

  8. #8
    New Member
    Join Date
    Feb 2011
    Posts
    10
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Hi, thanks for the reply. That is the thing, I tried to get the paypal express going, but everytime you hit paypal express, it directs you to the login page, where you can signup, login, or checkout without registering. As far as I know, paypal express enables buyer to go straight to paypal to pay without having to go through the login process from Oscmax. Have I done something wrong?

    I have a paypal business account in Australia, I have set up to accept paypal express, but it still is not working.

  9. #9
    New Member
    Join Date
    Feb 2011
    Posts
    10
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    I've also found out the following code under /ext/modules/payment/paypal/express.php, at line 16. It seems that the express will require you to log in as a customer. In my experience shopping with paypal express, I can certainly purchase something and pay using paypal express (as offered by the store owner) without even having to have an account with them. This is the process that I am aiming at. However looking at the code below, it states differently. Any insights will be appreciated.

    // if the customer is not logged on, redirect them to the login page
    if (!tep_session_is_registered('customer_id')) {
    $snapshot = array('page' => 'ext/modules/payment/paypal/express.php',
    'mode' => $request_type,
    'get' => $HTTP_GET_VARS,
    'post' => $HTTP_POST_VARS);

    $navigation->set_snapshot($snapshot);

    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
    }

  10. #10
    New Member
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    If you go to Admin - Configuration - Customer Details you can select whether a customer can purchase without an account or not. My own store has this selected as "no" which means they have to log in to their account (or create one and log in) before they can check out. I find this desirable as I want to be able to capture their details. I have not tried tried the alternative "yes" option but I suspect you can then by bypass the login page before completing check out. You will have to try this out yourself. Hope this helps.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 04-14-2009, 11:41 AM
  2. Paypal Express Checkout
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 10-29-2008, 03:26 AM
  3. Paypal Express Checkout
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-12-2008, 02:04 AM
  4. Paypal Express
    By harshy in forum Paypal
    Replies: 0
    Last Post: 09-13-2008, 02:05 PM
  5. PayPal Returns to "Payment Information" Page
    By Lobotaman in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 01-26-2007, 10:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •