php - how to restrict user for 10minutes for payment on paypal -


I am working on the booking website. When any user arrives at the site, choose a date & amp; Paypal for time and money for booking, before going to PayPal, I am adding this entry to the booking, so any other user can not go for the booking at that particular time for that date. Now if the user does not pay on PayPal and remains idle In this case it is blocked at the time I want the user to take 10 minutes to pay on PayPal. If the user is over time then with any flag should be redirected to my website, so I can remove that booking and at that time - the date will be available to the users for booking.

I can use a cron job which can remove the booking in a pending situation in the database for more than 10 minutes. PayPal automatically redirects (error in session timeout) when I go to PayPal for payment and I'm stuck,

2) But when I go to paypal and sandbox Log in to the account and then stay inactive, after 5 minutes, I try to do any activity, it gives an error of time, and redirects to PayPal's login screen. So it allows me to log in again and move forward for the payment.

In this way the user can pay even after 1 hour. If I remove the booking entry using the cron, this will cause conflict because the payment has been completed and there is no entry in the database.

After 10 minutes I want the user to explicitly redirect from PayPal to my site.

  & lt ;? Php // Create a timer firing after 10 minutes and start $ w1 = new EvTimer (600, 0, function (), "resonance", "10 minutes passed \ n"; // your status}); ? & Gt;  

Use the timer and type your position in the timer and check the user payment status


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -