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.
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.
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.
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.
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.