Page 2 of 2 FirstFirst 12
Results 11 to 19 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, Thanks again for the reply, however, that is the whole paypal express is all about. You can checkout and ...

      
  1. #11
    New Member
    Join Date
    Feb 2011
    Posts
    13
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Hi,

    Thanks again for the reply, however, that is the whole paypal express is all about. You can checkout and goes straight to paypal makes payment and goes back to the shop without having to go through the checkout process. This is regardless your configuration to allow checkout without an account or not.

    Seriously, I believe there are people out there, even in this forum that has been using it, so please if you are, please help. At least provide an example how it works. I've been looking all around the net and cant seem to find the answer.

  2. #12
    New Member
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Hi,

    I am sorry but I don't think I can help you further. My paypal express works fine and requires no login - I believe it only did because of a cookie problem originally as Michael explained. If you ring Paypal (1800 727 729 in Australia) and ask to work with an integration engineer to help you get set up, I am sure you will get things sorted. Set up a 1c item for them to work through a transaction and they can access your site and work out the correct flow. I think this will be your most expedient solution at this point.

  3. #13
    New Member
    Join Date
    Feb 2011
    Posts
    13
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Thanks for the reply, yea I guess you are right....I probably best call paypal and ask them. I also re-install a new oscmax with default skin, and activated the paypal express, but it is still the same thing, not sure why.

  4. #14
    New Member
    Join Date
    Feb 2011
    Posts
    13
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Some updates,

    I tried to install OSCOMMERCE version and activated the paypal express using the same API username and everything, and it works! So there must be something's wrong how the module coded in OSCMAX.

  5. #15
    New Member
    Join Date
    Feb 2011
    Posts
    13
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Yet another test....

    So, I went to the OSCMax demo page, where you get access to the admin and the shopfront access. Basically, I went into the admin section go to modules -> payment -> then install the paypal express, fill in the real API information as I have filled in my own site AND the oscommerce test site (which the paypal express works without redirecting to the login page), create a test category item, and a test product.

    Then went into the shop front, click on add to cart, click on checkout, then click on the "paypal express button", and guess what, it brings you to the login page! Can anyone, the developer please explain this? Paypal express was meant to redirect client without having to go through the login and registration process, instead it will use the saved information from paypal as the client shipping address and the billing address. If this works with OSCOMMERCE, there must be something is wrong with the coding.

    Again, when I looked at the code on /ext/modules/payment/paypal/express.php it clearly displays the following: (pay attention to the comments on the first line)


    // 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'));
    }

    BUT if you looked at the same file on OSCOMMERCE, it gives you the following code instead: (basically the same check method, but different action!)

    // initialize variables if the customer is not logged in
    if (!tep_session_is_registered('customer_id')) {
    $customer_id = 0;
    $customer_default_address_id = 0;
    }

    I tried to bypass the OSCMAX code by commenting out the "tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));", it went straight to the paypal express BUT gives no order summary.

    So, I'm sure this is not my mistake of filling in the wrong Paypal API information, or using the wrong templates, etc. So please, the developers help us out here. Or is this community really that ignorant? OR is this community made to believe that the paypal express is not meant to go straight to paypal.???

    Please do not take this as negative rants, but simply me being stressed out and hoping so much that someone could help out. Please at least, go through the same way I did, and let me know what your findings are.

  6. #16
    New Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Just want to pump up this thread as I have this problem also. The script redirect me to login page when I checkout!

    It seems to be a session/cookie problem. However, I have already cleared all the necessary temp files both in Firefox 9.01 and IE 9 but it is of no use.

    So does anyone have any idea on how to solve this? Thank you.

  7. #17
    New Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    delete as duplicated.
    Last edited by ellery.esd; 01-29-2012 at 05:01 PM.

  8. #18
    New Member
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    12
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Quote Originally Posted by ellery.esd View Post
    delete as duplicated.
    Sorry ellery.esd I cannot help you. Reading this over again I think there were two problems here. In my case, I force my customers to log into Oscmax when they checkout so that I can file there details. I only experienced the continual login problem during testing and this was a session/cookie issue as Michael explained. Paypal express seems to works fine where the customer has to log in first.

    If I understand lukassumarli's correctly, he appears to not want to force the customer to log in to complete checkout. It appears the code does not allow this and redirects the customer to the login page, regardless of whether the customer log before checkout in has been set on/off in admin. According to lukassumarli this is not a session/cookie problem. He doesn't say whether he found a solution or not.

    I think only lukassumarli or one of the developers can help you at this stage - unless you elect to use the working "force customer to log in" scenario that I (and possibly most people) have been using.

    Good luck mate!

  9. #19
    New Member
    Join Date
    Jan 2012
    Posts
    5
    Rep Power
    0


    Default Re: PayPal Express always returns to login.php

    Thanks emty.

    Actually you are correct. When I dig deeper it is the session and the code problem, but I don't know how to solve it.

    Here is the problem:

    When I first login I have an item in cart already, so:
    - I go to check-out
    - Go to paypal, click continue (I am using sandbox)
    - then get back to start "pay".

    Up to this moment, the session is still there (I can print out session, even AFTER the tep_session_close()!) in express_checkout.php, however, when I click "pay", that session is lost.

    And since that session losts, when it runs to the first if statement, it redirects me to the login page.

    So it is the session problem as michael said, even if i clear all the caches/temp files and everything. But I don't know how to fix this.

    Although the problem is still there, thank you for your response emty.

Page 2 of 2 FirstFirst 12

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
  •