Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 karma points
    Aug 06, 2013 @ 12:30
    suzyb
    0

    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.

  • Anders Burla 2560 posts 8256 karma points
    Aug 06, 2013 @ 13:10
    Anders Burla
    0

    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

  • suzyb 474 posts 932 karma points
    Aug 12, 2013 @ 17:44
    suzyb
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft