Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Joshua D. Stewart 34 posts 84 karma points
    Jan 27, 2010 @ 08:25
    Joshua D. Stewart
    0

    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.

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jan 27, 2010 @ 09:24
    Per Ploug
    0

    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.

     

  • Harald Ulriksen 207 posts 249 karma points
    Jan 28, 2010 @ 08:46
    Harald Ulriksen
    0

    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.



  • Joshua D. Stewart 34 posts 84 karma points
    Jan 29, 2010 @ 06:01
    Joshua D. Stewart
    0

    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.

  • Lee 1130 posts 3088 karma points
    Jan 29, 2010 @ 07:09
    Lee
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft