Is it possible to redirect Contour form to Paypal?
I have a Contour form that I would like to function as a Paypal donation form. The problem I am having is I can't seem to figure out how to get the form to post to the database and then redirect to Paypal and forward along the appropriate values via GET or POST so that the Paypal transaction can be completed. Is this possible with Contour? I've tried creating a workflow item for when the form has been submitted and selecting "post to url" and setting the url to Paypal, but when I submit the form it doesn't redirect to Paypal after the submit.
Currently you cannot make the form submit the values to another url, because of the way asp.net uses the <form> tag (it always posts back to it's own page)
Workflows execute without any browser interaction, so you cannot make the browser redirect from a workflow, as workflows are simply process that execute, seperate from the form in the browser.
Joshua, you can overried the action on the form tag by applying a filter to the http response. However you might also want to filter other values, i.e. not posting your viewstate to paypal.
Thank you for the info on how the forms and workflows work.
Harald,
Thank you for the information and the examnple link. I'll check it out and hopefully I'll be able to get a solution in place while still utilizing Contour. If I do I'll post the solution I come up with.
you could always redirect to PayPal on submission via just the URL, PayPal also works with QueryString values and not just posting values via a form - Heres a blog post I wrote, and it has the QueryString values you can use
Is it possible to redirect Contour form to Paypal?
I have a Contour form that I would like to function as a Paypal donation form. The problem I am having is I can't seem to figure out how to get the form to post to the database and then redirect to Paypal and forward along the appropriate values via GET or POST so that the Paypal transaction can be completed. Is this possible with Contour? I've tried creating a workflow item for when the form has been submitted and selecting "post to url" and setting the url to Paypal, but when I submit the form it doesn't redirect to Paypal after the submit.
Thank you for help in advance.
Hi Joshua
Currently you cannot make the form submit the values to another url, because of the way asp.net uses the <form> tag (it always posts back to it's own page)
Workflows execute without any browser interaction, so you cannot make the browser redirect from a workflow, as workflows are simply process that execute, seperate from the form in the browser.
Joshua, you can overried the action on the form tag by applying a filter to the http response. However you might also want to filter other values, i.e. not posting your viewstate to paypal.
See http://www.codeproject.com/KB/aspnet/ASP_Net_Form_Action_Attr.aspx for an example.
Per,
Thank you for the info on how the forms and workflows work.
Harald,
Thank you for the information and the examnple link. I'll check it out and hopefully I'll be able to get a solution in place while still utilizing Contour. If I do I'll post the solution I come up with.
Agian, thank you both for your help.
you could always redirect to PayPal on submission via just the URL, PayPal also works with QueryString values and not just posting values via a form - Heres a blog post I wrote, and it has the QueryString values you can use
http://www.blogfodder.co.uk/post/Adding-A-PayPal-Buy-Now-Donate-Button-In-Umbraco.aspx
is working on a reply...