I have an ASP button, when it is clicked it calls a function which adds order information into my database. The next step of the order process is to transfer the user over to the payment gateway with this form:
<form action="https://select-test.wp3.rbsworldpay.com/wcc/purchase" name="BuyForm" method="POST">
<input type="hidden" name="instId" value="151711">
<input type="hidden" name="cartId" value="abc123">
<input type="hidden" name="currency" value="GBP">
<input type="hidden" name="amount" value="1221">
<input type="hidden" name="desc" value="">
<input type="hidden" name="testMode" value="100">
<input type="submit" value="To Payment!">
</form>
However I really would like it so that the user:
Pressed order button -> Order function called -> User automatically passed to order page
As supposed to:
Pressed order button -> Order function called -> User goes to another page -> User manually clicks button to go to worldpay payment page
Is there anyway in c# to redirect the user to the order page, and submit form data with them?