0
They put me on a project that was done in ASP. NET MVC 2 and need to be done the integration with Itaú Shopline, I downloaded the dll from Itaú, I did all the encryption procedures, I can generate the data, but when sending to the external URL the post returns to the server of the site and not to the url of Itaú, which makes perfect sense, so that’s where my doubt comes in.
How do I post to an external url and submit the information I need?
Follows the code that is given as an example in the Itaú documentation:
<FORM ACTION=”https://shopline.itau.com.br/shopline/shopline.aspx”method=”post”
name=”form1” target=”SHOPLINE”>
<INPUT type=”hidden”name=”DC”value=”<%= dados %>”>
<br>
<INPUT type=”submit”name=”Shopline”value=”Itaú Shopline”>
</form>
Hugs!
Do you want to post from your controller? Try using the class Webrequest,
– Marco Giovanni
So, from what I understand, it’s like in the e-commerces that exist around, from a button on the page is made the call to an external url and in this way you make the call on the client side. From what I understand the documentation of Itaú
– KnD182
At a glance in this answer, has a demonstration of how to do POST using ajax
– Marco Giovanni