Copied to clipboard

Flag this post as spam?

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


  • Ian Dawson 24 posts 104 karma points
    Aug 02, 2012 @ 19:28
    Ian Dawson
    0

    Using .net to send to payment provider (no-javascript)

    Hello,

     

    I'm trying to implement a payment solution using just .net (i.e. no javascript). I can't work out from any of the blogs or doucmentation how I send the user to the payment provider (in this case worldpay). I'm currently trying to do it with an ascx control though suspect I may have problems because of the "runat=server" in the form tag, so would be willing to switch to razor. 

     

    Are there any examples on this about or could you give me some code snippets. In terms of displaying the basket and collecting the users details I am fine. It's just the last bit where I need to send them to the payment provider. I've looked at the starter kit but it's all xslt (and I don't really speak it very well)

     

    Thanks, Ian

  • Anders Burla 2560 posts 8256 karma points
    Aug 03, 2012 @ 09:08
    Anders Burla
    0

    Hi Ian

    Why make your own WorldPay provider - can't you use the built-in from Tea Commerce?

    The runat=server is a no go if you want to support payment providers using form post. So you need to use the right html way and not the asp.net.

    Kind regards
    Anders

  • Ian Dawson 24 posts 104 karma points
    Aug 03, 2012 @ 10:47
    Ian Dawson
    0

    I do want to use the built in WorldPay provider. 

    What I wanted to know was how I should construct my forms if not using javascript. I can't really decipher the xslt and have been unable to find any blog posts on it. Can you point me in the right direction?

    Thanks, Ian

     

  • Anders Burla 2560 posts 8256 karma points
    Aug 03, 2012 @ 10:52
    Anders Burla
    0

    You can just use the TeaCommerce.Library.GetPaymentForm( string submitInput ) to get the html form. The submitInput is for sending the submit html button you want.

    Kind regards
    Anders

  • Ian Dawson 24 posts 104 karma points
    Aug 03, 2012 @ 10:54
    Ian Dawson
    0

    Ok, thanks. Will give it a try, Ian

     

Please Sign in or register to post replies

Write your reply to:

Draft