public class GpApiConnector extends RestGateway implements IPaymentGateway, IReportingService, ISecure3dProvider, IPayFacProvider, IFraudCheckService, IFileProcessingService, IRecurringGateway, IDeviceCloudService
| Modifier and Type | Field and Description |
|---|---|
String |
challengeNotificationUrl |
static SimpleDateFormat |
DATE_SDF |
static org.joda.time.format.DateTimeFormatter |
DATE_TIME_DTF |
String |
methodNotificationUrl |
dynamicHeaders, environment, headers, serviceUrl, timeout, webProxy| Constructor and Description |
|---|
GpApiConnector(GpApiConfig config) |
doTransaction, doTransaction, doTransactionaddMaskedData, getRawResponse, getRawResponse, sendRequest, sendRequest, sendRequest, sendRequestpublic static final SimpleDateFormat DATE_SDF
public static final org.joda.time.format.DateTimeFormatter DATE_TIME_DTF
public String challengeNotificationUrl
public String methodNotificationUrl
public GpApiConnector(GpApiConfig config)
public final boolean hasBuiltInMerchantManagementService()
hasBuiltInMerchantManagementService in interface IPayFacProviderpublic boolean supportsRetrieval()
throws ApiException
supportsRetrieval in interface IRecurringGatewayApiExceptionpublic boolean supportsUpdatePaymentDetails()
throws ApiException
supportsUpdatePaymentDetails in interface IRecurringGatewayApiExceptionpublic <T> T processRecurring(RecurringBuilder<T> builder, Class<T> clazz) throws ApiException
processRecurring in interface IRecurringGatewayApiExceptionpublic String getMerchantUrl()
public FileProcessor processFileUpload(FileProcessingBuilder builder) throws ApiException
processFileUpload in interface IFileProcessingServiceApiExceptionpublic GpApiRequest signOut() throws GatewayException
GatewayExceptionpublic GpApiTokenResponse getAccessToken() throws GatewayException
GatewayExceptionpublic String doTransaction(Request.HttpMethod verb, String endpoint, String data, HashMap<String,String> queryStringParams, String idempotencyKey) throws GatewayException
GatewayExceptionprotected String handleResponse(GatewayResponse response) throws GatewayException
handleResponse in class RestGatewayGatewayExceptionpublic Transaction processAuthorization(AuthorizationBuilder builder) throws ApiException
processAuthorization in interface IPaymentGatewayApiExceptionpublic Transaction manageTransaction(ManagementBuilder builder) throws GatewayException, BuilderException, UnsupportedTransactionException
manageTransaction in interface IPaymentGatewayGatewayExceptionBuilderExceptionUnsupportedTransactionExceptionpublic <T> T processReport(ReportBuilder<T> builder, Class<T> clazz) throws ApiException
processReport in interface IReportingServiceApiExceptionpublic <T> T surchargeEligibilityLookup(SurchargeEligibilityBuilder builder, Class clazz) throws ApiException
surchargeEligibilityLookup in interface IReportingServiceApiExceptionpublic Secure3dVersion getVersion()
getVersion in interface ISecure3dProviderpublic Transaction processSecure3d(Secure3dBuilder builder) throws ApiException
processSecure3d in interface ISecure3dProviderApiExceptionpublic <T> T processBoardingUser(PayFacBuilder<T> builder) throws ApiException
processBoardingUser in interface IPayFacProviderApiExceptionpublic <T> T processPayFac(PayFacBuilder<T> builder) throws ApiException
processPayFac in interface IPayFacProviderApiExceptionpublic String processPassThrough(JsonDoc rawRequest) throws ApiException
processPassThrough in interface IDeviceCloudServiceApiExceptionpublic boolean supportsHostedPayments()
supportsHostedPayments in interface IPaymentGatewaypublic boolean supportsOpenBanking()
supportsOpenBanking in interface IPaymentGatewaypublic String serializeRequest(AuthorizationBuilder builder) throws ApiException
serializeRequest in interface IPaymentGatewayApiExceptionpublic NetworkMessageHeader sendKeepAlive() throws ApiException
sendKeepAlive in interface IPaymentGatewayApiExceptionpublic static String getValueIfNotNull(IStringConstant obj)
public static String getValueIfNotNull(IMappedConstant obj)
public static String getDateIfNotNull(org.joda.time.DateTime obj)
public static String getDateTimeIfNotNull(org.joda.time.DateTime obj)
public static Date parseGpApiDate(String dateValue) throws GatewayException
GatewayExceptionpublic static org.joda.time.DateTime parseGpApiDateTime(String dateValue) throws GatewayException
GatewayExceptionpublic <T> RiskAssessment processFraud(FraudBuilder<T> builder) throws ApiException
processFraud in interface IFraudCheckServiceApiExceptionCopyright © 2024. All rights reserved.