Reply to Help with redirecting please

Your name:

Reply:


Posted by Dynamo on 05/30/06 08:16

Firstly, many thanks to those who replied to my dreaded what if question. As a
result I have now been able to partially resolve my problem as follows:
step 1 - User clicks on "buy me" button
step 2 - He is sent to a confirmation page to confirm purchase or cancel
purchase.
step 3 - Confirmation page first checks the pending transaction table and
deletes all records that are older than 20mins.
step 4 - Confirmation page then checks the pending transaction table again to
see if the item that the person wants to buy remains in the table. If the answer
is yes then the buyer is blocked from purchasing. If the answer is no then the
buyer may proceed with purchase. If he clicks on the confirm button he is then
sent to Paypal site to make his payment.

The above prevents 2 people from trying to buy the same item within a 20 min
period. However, it is still not foolproof.
Buyer 1 arrives at confirmation page and decides to go and make coffee. After 19
minutes he returns to complete his payment via paypal. While he is making
payment buyer 2 tries to buy same product and can do so because 20 mins has
elapsed.

So I need to execute some final php code before sending the payment to paypal
for processing but I don't want to do it via another form. I have added another
field in the pending transactions table called status and heres what I want to
achieve.

step 1 - User clicks on confirm purchase to make payment and is sent to a
redirect page.
step 2 - Redirect page checks to see if more than 20mins has elapsed. If the
answer is yes then display a timeout page. If the answer is no then
update the status in the pending transaction table to "confirmed" and send the
variables held within $_POST to paypal but NOT by using a form.

Updating the tables is not a problem for me, it is the redirecting that i'm not
sure about. Any help greatly appreciated.

Dynamo

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация