public class PayPlanConnector extends Object implements IRecurringGateway
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
| Constructor and Description |
|---|
PayPlanConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
doTransaction(String verb,
String endpoint) |
String |
doTransaction(String verb,
String endpoint,
String data) |
String |
doTransaction(String verb,
String endpoint,
String data,
HashMap<String,String> queryStringParams) |
HashMap<String,String> |
getHeaders() |
String |
getSecretApiKey() |
String |
getServiceUrl() |
int |
getTimeout() |
protected String |
handleResponse(com.global.api.gateways.GatewayResponse response) |
<T> T |
processRecurring(RecurringBuilder<T> builder,
Class<T> clazz) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String endpoint,
org.apache.http.entity.mime.MultipartEntity content) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint,
String data) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint,
String data,
HashMap<String,String> queryStringParams) |
void |
setEnableLogging(boolean enableLogging) |
void |
setHeaders(HashMap<String,String> headers) |
void |
setSecretApiKey(String secretApiKey) |
void |
setServiceUrl(String serviceUrl) |
void |
setTimeout(int timeout) |
boolean |
supportsRetrieval() |
boolean |
supportsUpdatePaymentDetails() |
protected int timeout
protected String serviceUrl
public String getSecretApiKey()
public void setSecretApiKey(String secretApiKey)
public boolean supportsRetrieval()
supportsRetrieval in interface IRecurringGatewaypublic boolean supportsUpdatePaymentDetails()
supportsUpdatePaymentDetails in interface IRecurringGatewaypublic <T> T processRecurring(RecurringBuilder<T> builder, Class<T> clazz) throws ApiException
processRecurring in interface IRecurringGatewayApiExceptionpublic String doTransaction(String verb, String endpoint) throws GatewayException
GatewayExceptionpublic String doTransaction(String verb, String endpoint, String data) throws GatewayException
GatewayExceptionpublic String doTransaction(String verb, String endpoint, String data, HashMap<String,String> queryStringParams) throws GatewayException
GatewayExceptionprotected String handleResponse(com.global.api.gateways.GatewayResponse response) throws GatewayException
GatewayExceptionpublic void setEnableLogging(boolean enableLogging)
public int getTimeout()
public void setTimeout(int timeout)
public String getServiceUrl()
public void setServiceUrl(String serviceUrl)
protected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint, String data) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint, String data, HashMap<String,String> queryStringParams) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String endpoint, org.apache.http.entity.mime.MultipartEntity content) throws GatewayException
GatewayExceptionCopyright © 2019. All rights reserved.