I have a page that submits payment details to Worldpay from a form, hidden fields and a submit button. It works fine. However, what I would now like to do is perform some actions (send an email) on the local server after the submit button has been clicked but before actually posting data to Worldpay.
Is there a way I can achieve this? Can I have my own button acting as 'proceed with payment' and, after it is clicked, direct to my own code which then sends the email and posts the form data without any further user intervention?
I just can't get my head around this - maybe I missing something very obvious?
Thanks in advance.
Is there a way I can achieve this? Can I have my own button acting as 'proceed with payment' and, after it is clicked, direct to my own code which then sends the email and posts the form data without any further user intervention?
I just can't get my head around this - maybe I missing something very obvious?
Thanks in advance.