public class RealexConnector extends XmlGateway implements IPaymentGateway, IRecurringGateway, ISecure3dProvider
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
| Constructor and Description |
|---|
RealexConnector() |
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,String> |
getHeaders() |
String |
getServiceUrl() |
int |
getTimeout() |
Secure3dVersion |
getVersion() |
Transaction |
manageTransaction(ManagementBuilder builder) |
Transaction |
processAuthorization(AuthorizationBuilder builder) |
<TResult> TResult |
processRecurring(RecurringBuilder<TResult> builder,
Class<TResult> clazz) |
<TResult> TResult |
processReport(ReportBuilder<TResult> builder,
Class<TResult> clazz) |
Transaction |
processSecure3d(Secure3dBuilder builder) |
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 |
setAccountId(String accountId) |
void |
setChannel(String channel) |
void |
setEnableLogging(boolean enableLogging) |
void |
setHeaders(HashMap<String,String> headers) |
void |
setHostedPaymentConfig(HostedPaymentConfig config) |
void |
setMerchantId(String merchantId) |
void |
setRebatePassword(String rebatePassword) |
void |
setRefundPassword(String refundPassword) |
void |
setServiceUrl(String serviceUrl) |
void |
setSharedSecret(String sharedSecret) |
void |
setTimeout(int timeout) |
boolean |
supportsHostedPayments() |
boolean |
supportsRetrieval() |
boolean |
supportsUpdatePaymentDetails() |
doTransactionprotected int timeout
protected String serviceUrl
public Secure3dVersion getVersion()
getVersion in interface ISecure3dProviderpublic void setMerchantId(String merchantId)
public void setAccountId(String accountId)
public void setRebatePassword(String rebatePassword)
public void setRefundPassword(String refundPassword)
public void setSharedSecret(String sharedSecret)
public void setChannel(String channel)
public void setHostedPaymentConfig(HostedPaymentConfig config)
public boolean supportsRetrieval()
supportsRetrieval in interface IRecurringGatewaypublic boolean supportsUpdatePaymentDetails()
supportsUpdatePaymentDetails in interface IRecurringGatewaypublic boolean supportsHostedPayments()
supportsHostedPayments in interface IPaymentGatewaypublic 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 <TResult> TResult processRecurring(RecurringBuilder<TResult> builder, Class<TResult> clazz) throws ApiException
processRecurring in interface IRecurringGatewayApiExceptionpublic Transaction processSecure3d(Secure3dBuilder builder) throws ApiException
processSecure3d in interface ISecure3dProviderApiExceptionpublic 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.