Is it possible to hold sending email after a feedback has been processed?
-
Hello,
I am trying to get the following to work with CF7:
1 CF7 form collects user data for ticket
2 action url is a mydomain.com/psp/script-from-payment-service-provider
3 depending on the return of script-from-payment-service-provider
3a: succesfull – CF7 customize email will be sent with auto generated pdf tickets attached (using tcpdf for this)
3b: failure – replace CF7 form with failure message.I have already develop the process 1 and 3a (so with no payment, the user gets the tickets immediately). I need to build the payment part.
For step 2 i am trying
<script> function psp_redirect() { var amount= document.getElementById("price").value; var qty= document.getElementById("qty").value; var url = "https://www.mydomain.com/psp/script-from-payment-service-provider.php?price="+amount+"&qty="+qty+"&return=https://result"; window.location = url; } </script>
and in additional headers
on_sent_ok: psp_redirect();
But how can i sent the return from script-from-payment-service-provider.php back to CF7 form page and sent an email?
Any suggestions?
- The topic ‘Is it possible to hold sending email after a feedback has been processed?’ is closed to new replies.