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)
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?
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.
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
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
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
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
Ok, thanks. Will give it a try, Ian
is working on a reply...