Interface APSProvider
- All Known Implementing Classes:
ExternalAPSProvider
public interface APSProvider
Provider for interfacing with operations utilizing a
WebClient
to make requests to an
external REST API.- Author:
- Muhammad Salman Farooq
-
Method Summary
-
Method Details
-
postRequest
Map<String,Object> postRequest(Map<String, Object> bodyParams, @Nullable String applicationId, @Nullable String tenantId) throws SignatureCreationException, APSResponseSignatureMismatchException, ProviderApiExceptionConvinience method to create a post request with APS Payfort API- Parameters:
bodyParams
-applicationId
- the application idtenantId
- the tenant id- Returns:
- Map object containing response from APS Payfort API
- Throws:
SignatureCreationException
- if some error occur while creating or validation the signaturesProviderApiException
- if some error occur while communicating with APS Payfort APIAPSResponseSignatureMismatchException
-