public class EwayGatewayConnector
extends java.lang.Object
| Constructor and Description |
|---|
EwayGatewayConnector(java.lang.String url,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGatewayUrlRealTime()
Get the URL associated to the Real-time payment method.
|
int |
getTimeout()
Get the timeout value set in the corresponding setter.
|
void |
sendRequest(EwayGatewayRequest request,
EwayGatewayResponse response)
Send a request to the payment gateway and get the response.
|
void |
setGatewayUrlRealTime(java.lang.String url)
Set the URL associated to the Real-time payment method.
|
void |
setTimeout(int time)
Set the timout value.
|
public EwayGatewayConnector(java.lang.String url,
int timeout)
public java.lang.String getGatewayUrlRealTime()
public void setGatewayUrlRealTime(java.lang.String url)
url - the Gateway URL for Real-time paymentspublic int getTimeout()
public void setTimeout(int time)
time - timeout value in milliseconds, 0 for infinitepublic void sendRequest(EwayGatewayRequest request, EwayGatewayResponse response) throws java.lang.Exception
request - the request object, can be any of the 3 supported payment
methods. Its data have to be filled in by its setter methods before
calling sendRequest().response - the response to filljava.lang.Exception - in case of networking and xml parsing errorsstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.