Package com.alphapay.api
Class BaseAlphaPayClient
java.lang.Object
com.alphapay.api.BaseAlphaPayClient
- All Implemented Interfaces:
AlphaPayClient
- Direct Known Subclasses:
DefaultAlphaPayClient
-
Constructor Summary
ConstructorsConstructorDescriptionBaseAlphaPayClient(String gatewayUrl, String merchantPrivateKey, String alphaPayPublicKey) -
Method Summary
Modifier and TypeMethodDescription<T extends AlphaPayResponse>
Texecute(AlphaPayRequest<T> alphaPayRequest) abstract HttpRpcResult
-
Constructor Details
-
BaseAlphaPayClient
public BaseAlphaPayClient() -
BaseAlphaPayClient
-
-
Method Details
-
execute
public <T extends AlphaPayResponse> T execute(AlphaPayRequest<T> alphaPayRequest) throws AlphaPayApiException - Specified by:
executein interfaceAlphaPayClient- Throws:
AlphaPayApiException
-
buildCustomHeader
-
sendRequest
public abstract HttpRpcResult sendRequest(String requestUrl, String httpMethod, Map<String, String> header, String reqBody) throws AlphaPayApiException- Throws:
AlphaPayApiException
-