Class LiberalizeBE

java.lang.Object
liberalize.java.backend.sdk.LiberalizeBE

public class LiberalizeBE
extends java.lang.Object
  • Field Details

  • Constructor Details

    • LiberalizeBE

      protected LiberalizeBE()
  • Method Details

    • setPrivateKey

      public void setPrivateKey​(java.lang.String key)
      Set private key
      Parameters:
      key - private key
    • setEnvironment

      public void setEnvironment​(Environment env)
      Set environment
      Parameters:
      env - environment enum DEVELOPMENT PRODUCTION STAGING
    • getInstance

      public static LiberalizeBE getInstance()
      Singleton
      Returns:
      LiberalizeBE
    • getEnv

      public Environment 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 request
      libService - payment service
      result - 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 request
      libService - payment service
      paymentId - payment id
      result - 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 request
      libService - payment service
      paymentId - payment id
      result - callback with PaymentFlowResponse
    • voidPayment

      public void voidPayment​(java.lang.String libService, java.lang.String paymentId, ApiResult<PaymentFlowResponse> result)
      Void payment API
      Parameters:
      libService - payment service
      paymentId - payment id
      result - 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 request
      libService - payment service
      paymentId - payment id
      result - 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 service
      paymentId - payment id
      result - callback with PaymentDetailsResponse