Hi Shaun,

Dev WO wrote:
I think I can use a regular WOForm and use James' method to redirect to the bank url
public WOComponent sendToVerisign() {
    WORedirect nextPage;
    nextPage = new WORedirect(context());
nextPage.setUrl (yourTargetUrlAsString()); <-- use your banks method here
    return nextPage;
}
but even if this work, I don't know how to handle the bank response which will also be a "post" form:(

I havent really been following this thread.. So I might have missed something already mentioned.

1) You post to the bank providing a url for there response(a direct action).
I don't really know in fact, they provided me with Java Servlet code that should handle almost everything like creating the entire string for the "page"(form) I have to send to the bank url.

My main concern is really: how to glue my WOApplication to their code:
-I don't know what to write for the method that would send the user to the bank page (calling the bank provided java servlet methods) -I don't know how to call the bank provided methods from a Direct Action to handle the bank server response

The process is:
1-my user have a button or hyperlink to validate their cart, this button trigger some of the bank code (which generate a form page) and send the user to the bank website (it's the url in the generated form). But I don't have a form in my WOApplication, the code provided by the bank should generate the entire request as a string (but I don't know how to call it) 2-when the user is done with the bank transaction, the bank send a response (a form page) to a Direct Action of my WOApplication. So I have to handle this response using the code they provided me with. 3-finally if the transaction is OK, the same method called in "2" should answer to the bank server.

I copied the methods provided by the bank in a previous message if you want to have a look.

2) Bank posts there response to your direct action url.
yes

3) You use formValueForKey to get the information the bank has responded with.
I don't even know if it's the way to do it:(

Thanks for talking the time to help me

Xavier


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to