Copied to clipboard

Flag this post as spam?

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


  • Merijn van Mourik 58 posts 128 karma points
    Aug 01, 2013 @ 17:19
    Merijn van Mourik
    0

    Generating payment form MVC style

    Hi TeaCommerce,

    Can I redirect to the bank the mvc way like this:

    [HttpPost]
    public ActionResult HandleJouwGegevensForm(TSJouwGegevensViewModel model)
    {
        if (!ModelState.IsValid)
        {
           return CurrentUmbracoPage();
        }
        else
        {
            Redirect(TC.GeneratePaymentForm(1));
        }
    }
    

    Thanks, Merijn

  • Anders Burla 2560 posts 8256 karma points
    Aug 05, 2013 @ 11:04
    Anders Burla
    0

    Hi Meijn

    The GeneratePaymentForm generates a HTML post form. So dont think you can do like that :)

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft