Sunday, July 10, 2011

Call on a GWT module from a servlet

Hi,

I am little confused, the subject does not describe correctly what I
need to do. Here's the thing:

I have a GWT application which I need to integrate with a third party
payment gateway. To make this work, I need to make my GWT application
send a few parameters via a form and post it to a URL that the payment
gateway has given me. That's easy to do, I create a FormPanel and
created all the inputs and the hidden fields that are required and I
can submit to the URL.

The problem is the redirect URL. After the payment gateway process
completes, it will redirect the user to my GWT application. I thought
I'll create a servlet to receive the response. I can handle the
response, make updates to my database.

But now how do I transfer the control back to the GWT client module to
show the user what has happened?

I need to say it was successful or not and whether an email was sent
or not extra. Also I need to share a serial ID with them. That's what
they purchase actually.

Could someone tell me if this the right way of doing this? Or should
the redirect URL be handled by the client modules first and then from
there I should route via RPC to a RemoteService? In that case, how do
I send all the other stuff the payment gateway has sent to me in the
request?

Thanks
Sethu

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate