In fact I "just" need to generate a "signed" form then the submit
button should do a couple thing on my side, and send my user to the
bank server.
Then, depending on the transaction, the bank will call a direct
action on my side to activate a sort of recipe.
So basically I don't really need to "wait" for something, I send the
form to the bank then if something happens (a call to my direct
action), then I'll update the order to either true or false.
So actually I'm pretty "stop" about how to write a method that would
provide "send my form using http and display the bank site", but
maybe just having a url in the action field of the form would lead to
this behavior and linking an action to the submit button to do the
stuff I need on my side (like saving the order).
Would it work to have both something for the action of the form and
an action bind to the submit button?
In this case, I'm not sure I could handle the following case:
bug on my side, but the user get send to the bank account anyway.
In fact after thinking about it, I'm pretty sure I shouldn't provide
the form inside the page, but only generate the post action when the
submit button is clicked...I'm not sure I'm clear;)
Usually your provider will give you instructions specific to
sending a user to their credit card page where the user fills in
the details and processes the payment.
They do (more below)
For example if you go to this page on this site and right-click on
the actual form and open in a new window, you will see that the
form is really a page on the credit card provider's site shown
inside a html frame on the originating site.
http://www.loacademy.com/OrderProduct.asp (not my site ... I don't
do asp dev!)
I cannot use frame, we've got important concerned about
accessibility, and frame are just... horrible;)
But I don't need to handle the bank part, only send my user there
using a "post" form, and eventually answer to a call to a direct action.
Did your bank provider provide you with a development kit/manual?
Yes they do provide me with a Java kit containing the method that
would generate the form as a string....but I don't know what to do
with this string:(