Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 30, 2006, 8:16 am
rate this thread
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
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
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
step 1 - User clicks on confirm purchase to make payment and is sent to a
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.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum