I've managed to write a basic shop using the .net api but have hit a small block. I can't see how to send the user to pyament using the .net api.
I have a Wizard control in a usercontrol macro which collects the customer information and sets shipping / delivery options. When the customer clicks the finish button I'd like them to be sent to payment and returned to the confirmation page. I don't know what method to call in my finish button click event however.
In a server click event how can I redirect the user to payment.
I dont think you can do that. Most payment gateways need a form to be posted with some form fields to a specific url. What you might can do is to use the TC.GeneratePaymentForm and then split the html form that is returned and post it using some .net method to do this?
Been playing around with this for a week so will log my "findings" in case anyone else is finding similar problems.
I thought using the HTMLAgilityPack to parse the form and build a post string then using WebRequest to post the form would work but, at least with paypal it doesn't. Paypal moans cookies aren't on.
Send to payment using .net api
I've managed to write a basic shop using the .net api but have hit a small block. I can't see how to send the user to pyament using the .net api.
I have a Wizard control in a usercontrol macro which collects the customer information and sets shipping / delivery options. When the customer clicks the finish button I'd like them to be sent to payment and returned to the confirmation page. I don't know what method to call in my finish button click event however.
In a server click event how can I redirect the user to payment.
I dont think you can do that. Most payment gateways need a form to be posted with some form fields to a specific url. What you might can do is to use the TC.GeneratePaymentForm and then split the html form that is returned and post it using some .net method to do this?
Kind regards
Anders
Been playing around with this for a week so will log my "findings" in case anyone else is finding similar problems.
I thought using the HTMLAgilityPack to parse the form and build a post string then using WebRequest to post the form would work but, at least with paypal it doesn't. Paypal moans cookies aren't on.
is working on a reply...