Paypal not processing fast enough?

Discussion in 'Payments processing' started by eh1160, Jul 1, 2006.

  1. eh1160

    eh1160 Guest

    Seems like PayPal doesn't process the order fast enough for aMember. Whenever I complete an order in PayPal's sandbox, I return to aMember's thanks page. But, not all the data has come through. I get the following...notice the missing information:

    Your payment has been succesfully processed.
    Order reference: 29 /
    Date and time of payment:

    If I keep clicking refresh, I get the the following in less than 10 sec:

    Your payment has been succesfully processed.
    Order reference: 29 / S-14Y3761763965405U
    Date and time of payment: 07/01/2006 14:54:04


    Any ideas how to counteract this problem? I doubt my users are going to be hitting the refresh button.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Unfortunately there is such a problem with PayPal - user is seeing thanks page before data is actually posted to aMember in background. There is no easy solution, you may try to add line
    sleep(5);
    into top of amember/thanks.php file.
  3. eh1160

    eh1160 Guest

    Thanks!

    Thanks Alex, that worked. Well, I actually had to change it to sleep(7) for it to wait long enough.

    I very much appreciate your EXCELLENT support.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You are welcome!
    Next aMember version (in 3.0 branch) will include an intelligent workaround around this paypal issue. It will wait up to 15 seconds to get postback before displaying thanks page. I just checked and it works like charm.
  5. 123Marketing

    123Marketing Member

    Joined:
    Jun 4, 2005
    Messages:
    138
    I didn't find a sleep variable in the thanks.php file.

    I have version 2.3.8PRO... can you help me?
  6. eh1160

    eh1160 Guest

    123Marketing,
    Just stick the following line in the top of the thanks.php file:

    sleep(5);

    Where 5 means 5 seconds. You can replace 5 with any number you want.

    This line doesn't currently exist in the file, you have to add it yourself.
  7. 123Marketing

    123Marketing Member

    Joined:
    Jun 4, 2005
    Messages:
    138
    Very cool eh1160... thank you so much.

Share This Page