I have a form with a submit button that takes the user to paypal to process payment of an order. I would like to move the order from the temp table to order table as this is done. Bassicaly I need to call my stored proc when the user hits the submit button but before they leave my page for paypal. What is the best method to accomplish this.
Right now I send the user to an action page that processes the order, then takes them to paypal, but they can bail out from paypals page and leave an un-paid order. (i can check all this and delete later if I don't receive the ipn from paypal) but I would rather do both on the submit button.
Thanks in advance.
Right now I send the user to an action page that processes the order, then takes them to paypal, but they can bail out from paypals page and leave an un-paid order. (i can check all this and delete later if I don't receive the ipn from paypal) but I would rather do both on the submit button.
Thanks in advance.