Package liberalize.java.backend.sdk
Class LiberalizeBE
java.lang.Object
liberalize.java.backend.sdk.LiberalizeBE
public class LiberalizeBE
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedLiberalizeBE() -
Method Summary
Modifier and Type Method Description voidauthorizePayment(AuthorizePaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Authorize payment APIvoidcapturePayment(CapturePaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Capture payment APIvoidcreatePayment(CreatePaymentRequest createPaymentRequest, java.lang.String libService, ApiResult<PaymentFlowResponse> result)Create payment APIEnvironmentgetEnv()get Environment enumstatic LiberalizeBEgetInstance()SingletonvoidgetPayment(java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentDetailsResponse> result)Get payment details APIvoidrefundPayment(RefundPaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Refund payment APIvoidsetEnvironment(Environment env)Set environmentvoidsetPrivateKey(java.lang.String key)Set private keyvoidvoidPayment(java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Void payment APIMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
apiClient
-
-
Constructor Details
-
LiberalizeBE
protected LiberalizeBE()
-
-
Method Details
-
setPrivateKey
public void setPrivateKey(java.lang.String key)Set private key- Parameters:
key- private key
-
setEnvironment
Set environment- Parameters:
env- environment enum DEVELOPMENT PRODUCTION STAGING
-
getInstance
Singleton- Returns:
- LiberalizeBE
-
getEnv
get Environment enum- Returns:
- Environment
-
createPayment
public void createPayment(CreatePaymentRequest createPaymentRequest, java.lang.String libService, ApiResult<PaymentFlowResponse> result)Create payment API- Parameters:
createPaymentRequest- payment requestlibService- payment serviceresult- callback with PaymentFlowResponse
-
authorizePayment
public void authorizePayment(AuthorizePaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Authorize payment API- Parameters:
request- authorize requestlibService- payment servicepaymentId- payment idresult- callback with PaymentFlowResponse
-
capturePayment
public void capturePayment(CapturePaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Capture payment API- Parameters:
request- authorize requestlibService- payment servicepaymentId- payment idresult- callback with PaymentFlowResponse
-
voidPayment
public void voidPayment(java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Void payment API- Parameters:
libService- payment servicepaymentId- payment idresult- callback with PaymentFlowResponse
-
refundPayment
public void refundPayment(RefundPaymentRequest request, java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)Refund payment API- Parameters:
request- Refund requestlibService- payment servicepaymentId- payment idresult- callback with PaymentFlowResponse
-
getPayment
public void getPayment(java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentDetailsResponse> result)Get payment details API- Parameters:
libService- payment servicepaymentId- payment idresult- callback with PaymentDetailsResponse
-