public class PorticoConnector extends XmlGateway implements IPaymentGateway
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
| Constructor and Description |
|---|
PorticoConnector() |
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,String> |
getHeaders() |
String |
getServiceUrl() |
int |
getTimeout() |
Transaction |
manageTransaction(ManagementBuilder builder) |
Transaction |
processAuthorization(AuthorizationBuilder builder) |
<TResult> TResult |
processReport(ReportBuilder<TResult> builder,
Class<TResult> 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) |
String |
serializeRequest(AuthorizationBuilder builder) |
void |
setDeveloperId(String developerId) |
void |
setDeviceId(int deviceId) |
void |
setEnableLogging(boolean enableLogging) |
void |
setHeaders(HashMap<String,String> headers) |
void |
setLicenseId(int licenseId) |
void |
setPassword(String password) |
void |
setSecretApiKey(String secretApiKey) |
void |
setServiceUrl(String serviceUrl) |
void |
setSiteId(int siteId) |
void |
setTimeout(int timeout) |
void |
setUsername(String username) |
void |
setVersionNumber(String versionNumber) |
boolean |
supportsHostedPayments() |
doTransactionprotected int timeout
protected String serviceUrl
public boolean supportsHostedPayments()
supportsHostedPayments in interface IPaymentGatewaypublic void setSiteId(int siteId)
public void setLicenseId(int licenseId)
public void setDeviceId(int deviceId)
public void setUsername(String username)
public void setPassword(String password)
public void setDeveloperId(String developerId)
public void setVersionNumber(String versionNumber)
public void setSecretApiKey(String secretApiKey)
public Transaction processAuthorization(AuthorizationBuilder builder) throws ApiException
processAuthorization in interface IPaymentGatewayApiExceptionpublic String serializeRequest(AuthorizationBuilder builder) throws ApiException
serializeRequest in interface IPaymentGatewayApiExceptionpublic Transaction manageTransaction(ManagementBuilder builder) throws ApiException
manageTransaction in interface IPaymentGatewayApiExceptionpublic <TResult> TResult processReport(ReportBuilder<TResult> builder, Class<TResult> clazz) throws ApiException
processReport in interface IPaymentGatewayApiExceptionpublic 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.