Class AppPaymentProcessor

java.lang.Object
com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
com.skava.payment.service.impl.PaymentAutowires
com.skava.paymentapp.util.AppAutowires
com.skava.paymentapp.processor.AppPaymentProcessor
All Implemented Interfaces:
com.skava.payment.processor.PaymentProcessor

@Component public class AppPaymentProcessor extends AppAutowires implements com.skava.payment.processor.PaymentProcessor
AppPaymentProcessor
Since:
17-DEC-2020
Author:
Infosys Equinox
  • Field Details

    • pluginProperties

      protected HashMap<String,String> pluginProperties
      Properties required to connect with Default payment process. These properties are created while creating PaymentProviderMaster and CollectionProvider.
  • Constructor Details

    • AppPaymentProcessor

      public AppPaymentProcessor(Map<String,String> properties)
      Parameters:
      properties - A Map object. A map of properties which needs to be passed to constructor while initializing.
  • Method Details

    • getPluginProperties

      public Map<String,String> getPluginProperties()
      Returns:
      properties A Map object. A map of properties with which plugin is handled.
    • supportsOp

      public boolean supportsOp(int op, Map<String,Object> otherProperties)
      Specified by:
      supportsOp in interface com.skava.payment.processor.PaymentProcessor
    • preAuthorize

      public com.skava.payment.model.response.PaymentProcessorResponse preAuthorize(String paymentCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      preAuthorize in interface com.skava.payment.processor.PaymentProcessor
    • authorize

      public com.skava.payment.model.response.PaymentProcessorResponse authorize(String paymentCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      authorize in interface com.skava.payment.processor.PaymentProcessor
    • charge

      public com.skava.payment.model.response.PaymentProcessorResponse charge(String authorizationCode, String paymentCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      charge in interface com.skava.payment.processor.PaymentProcessor
    • scrubSecureData

      public com.skava.payment.model.response.PaymentProcessorResponse scrubSecureData(Map<String,Object> otherProperties)
      Specified by:
      scrubSecureData in interface com.skava.payment.processor.PaymentProcessor
    • createPaymentProfile

      public com.skava.payment.model.response.PaymentProcessorResponse createPaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency)
      Specified by:
      createPaymentProfile in interface com.skava.payment.processor.PaymentProcessor
    • createPaymentProfile

      public com.skava.payment.model.response.PaymentProcessorResponse createPaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency, Map<String,Object> otherProperties)
      Specified by:
      createPaymentProfile in interface com.skava.payment.processor.PaymentProcessor
    • retrievePayment

      public com.skava.payment.model.response.PaymentProcessorResponse retrievePayment(String paymentCode, Map<String,Object> otherProperties)
      Specified by:
      retrievePayment in interface com.skava.payment.processor.PaymentProcessor
    • isBillingAddressRequired

      public boolean isBillingAddressRequired()
      Specified by:
      isBillingAddressRequired in interface com.skava.payment.processor.PaymentProcessor
    • cancelAuthorization

      public com.skava.payment.model.response.PaymentProcessorResponse cancelAuthorization(String authorizationCode, String paymentCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      cancelAuthorization in interface com.skava.payment.processor.PaymentProcessor
    • refund

      public com.skava.payment.model.response.PaymentProcessorResponse refund(String authorizationCode, String paymentCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      refund in interface com.skava.payment.processor.PaymentProcessor
    • checkIfRequiredPropertiesExists

      public boolean checkIfRequiredPropertiesExists(Map<String,Object> otherProperties)
      Specified by:
      checkIfRequiredPropertiesExists in interface com.skava.payment.processor.PaymentProcessor
    • checkIfBillingAddressUpdateReqNewToken

      public boolean checkIfBillingAddressUpdateReqNewToken()
      Specified by:
      checkIfBillingAddressUpdateReqNewToken in interface com.skava.payment.processor.PaymentProcessor
    • checkIfPaymentDetailsCanUpdate

      public boolean checkIfPaymentDetailsCanUpdate(Map<String,Object> otherProperties)
      Specified by:
      checkIfPaymentDetailsCanUpdate in interface com.skava.payment.processor.PaymentProcessor
    • updatePaymentProfile

      public com.skava.payment.model.response.PaymentProcessorResponse updatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode)
      Specified by:
      updatePaymentProfile in interface com.skava.payment.processor.PaymentProcessor
    • updatePaymentProfile

      public com.skava.payment.model.response.PaymentProcessorResponse updatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode, Map<String,Object> otherProperties)
      Specified by:
      updatePaymentProfile in interface com.skava.payment.processor.PaymentProcessor
    • credit

      public com.skava.payment.model.response.PaymentProcessorResponse credit(String authorizationCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      credit in interface com.skava.payment.processor.PaymentProcessor
    • directCharge

      public com.skava.payment.model.response.PaymentProcessorResponse directCharge(String authorizationCode, BigDecimal amount, Map<String,Object> otherProperties)
      Specified by:
      directCharge in interface com.skava.payment.processor.PaymentProcessor
    • isTokenRequired

      public boolean isTokenRequired()
      Specified by:
      isTokenRequired in interface com.skava.payment.processor.PaymentProcessor
    • isPostCreatePaymentProfileActionRequired

      public boolean isPostCreatePaymentProfileActionRequired()
      Specified by:
      isPostCreatePaymentProfileActionRequired in interface com.skava.payment.processor.PaymentProcessor
    • postCreatePaymentProfileActions

      public com.skava.payment.model.response.PaymentProcessorResponse postCreatePaymentProfileActions(com.skava.payment.model.dto.payment.Payment payment, List<com.skava.payment.model.entity.payment.PaymentPropertyEntity> requestedPaymentProperties)
      Specified by:
      postCreatePaymentProfileActions in interface com.skava.payment.processor.PaymentProcessor
    • register

      public com.skava.payment.model.response.PaymentProcessorResponse register(String transactionType, BigDecimal amount, String mode, Map<String,Object> otherProperties)
      This method is to get session URL from provider
      Specified by:
      register in interface com.skava.payment.processor.PaymentProcessor
      Parameters:
      transactionType - A String object.
      amount - amount A BigDecimal object.
      mode - A String object.
      otherProperties - A Map object.
      Returns:
      A PaymentProcessorResponse object.