Class ExternalAPSProvider
java.lang.Object
com.broadleafcommerce.payment.service.gateway.provider.external.AbstractExternalProvider
com.broadleafcommerce.payment.service.gateway.provider.external.ExternalAPSProvider
- All Implemented Interfaces:
- APSProvider
This particular implementation of 
ExternalAPSProvider is designed to interact with a
 provider that will perform some action.- Author:
- Muhammad Salman Farooq
- 
Constructor SummaryConstructorsConstructorDescriptionExternalAPSProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, APSSignatureService signatureUtil, ExternalAPSProperties properties) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringprotected Stringprotected ExternalAPSPropertiesprotected APSSignatureServiceConvinience method to create a post request with APS Payfort APIprotected voidMethods inherited from class com.broadleafcommerce.payment.service.gateway.provider.external.AbstractExternalProviderexecuteRequest, getObjectMapper, getWebClient, uriVars
- 
Constructor Details- 
ExternalAPSProviderpublic ExternalAPSProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, APSSignatureService signatureUtil, ExternalAPSProperties properties) 
 
- 
- 
Method Details- 
postRequestpublic Map<String,Object> postRequest(Map<String, Object> bodyParams, @Nullable String applicationId, @Nullable String tenantId) throws SignatureCreationException, APSResponseSignatureMismatchException, ProviderApiExceptionDescription copied from interface:APSProviderConvinience method to create a post request with APS Payfort API- Specified by:
- postRequestin interface- APSProvider
- applicationId- the application id
- tenantId- the tenant id
- Returns:
- Map object containing response from APS Payfort API
- Throws:
- SignatureCreationException- if some error occur while creating or validation the signatures
- ProviderApiException- if some error occur while communicating with APS Payfort API
- APSResponseSignatureMismatchException
 
- 
getEndpointUrl
- 
createRequestSignature
- 
validateResponseSignatureprotected void validateResponseSignature(Map<String, Object> responseMap, @Nullable String applicationId, @Nullable String tenantId) throws ResponseSignatureCreationException, APSResponseSignatureMismatchException
- 
getProperties
- 
getSignatureUtil
 
-