payment transaction.

66 views
Skip to first unread message

clem...@gmail.com

unread,
May 30, 2015, 8:42:16 PM5/30/15
to google-we...@googlegroups.com
Hello.
I would like to know how to solve a problem that I cannot figure out:

I have an gwt RPC service:

@RemoteServiceRelativePath("greet")

public interface GreetingService extends RemoteService {

PayResult proceedPayment(PaymentRequest paymentRequest)

}

And of course the Async.

public interface GreetingServiceAsync {

void proceedPayment(PaymentRequest paymentRequest, AsyncCallback< PayResult > callback);

}

With the name of the function you understand that the gwt client is going to request the payment and the server (GAE) is going to proceed to payment.

My question is the following:

imagine that the client calls the proceedPayment function sucessfully. The server receives the request but while the payment is being processed on the server, the client connection fails.

what happens then?

On the client side the onFailure methode is called --> the client believes the payement has failed...

On the server side the payement has been successfully performed.


HOW CAN I SOLVE THIS ISSUE?




Trez Ertzzer

unread,
Jul 26, 2015, 10:42:38 AM7/26/15
to Google Web Toolkit, clem...@gmail.com
ANYONE?
Reply all
Reply to author
Forward
0 new messages