I am trying to get WPC7 to work wit a payment service provider. I am developing locally at the moment. On my contact form i like to add
on_sent_ok: "location = 'http://psp-url.com/';"
and only if the payment is succesfull/accepted the mail 2 body is sent (i made an extra function with wpcf7 before sendmail).
How can i accomplish this ? any tips pointers