Class RegisterPaymentServiceImpl

java.lang.Object
com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
com.skava.payment.service.impl.PaymentAutowires
com.skava.paymentapp.util.AppAutowires
com.skava.paymentapp.service.impl.RegisterPaymentServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<RegisterPaymentRequest,RegisterPaymentResponse>, com.skava.payment.service.CustomEcommService<RegisterPaymentRequest,RegisterPaymentResponse>, RegisterPaymentService

@Service public class RegisterPaymentServiceImpl extends AppAutowires implements RegisterPaymentService
RegisterTransactionServiceImpl
Author:
Infosys Equinox
  • Constructor Details

    • RegisterPaymentServiceImpl

      public RegisterPaymentServiceImpl()
  • Method Details

    • process

      @Audit public RegisterPaymentResponse process(RegisterPaymentRequest registerPaymentRequest)
      This method is used to create Payment based on given Payment. Checks if the payment request already has a provider with token, payment provider creation will be skipped.
      Specified by:
      process in interface com.skava.core.EcommService<RegisterPaymentRequest,RegisterPaymentResponse>
      Parameters:
      registerPaymentRequest - It contains the attributes required for the creation of Payment.
      Returns:
      It returns the RegisterPaymentResponse.
    • createCustomerSession

      public com.skava.payment.model.response.PaymentProcessorResponse createCustomerSession(String collectionId, RegisterPaymentRequest registerPaymentRequest, String mode, Map<String,Object> otherProperties, Integer paymentOptionId, String authToken)
      This method is used to Create Customer Session
      Parameters:
      collectionId - holds valid collection id
      registerPaymentDetails - holds valid object
      mode - holds valid mode
      otherProperties - holds properties
      paymentOptionId - holds payment option id
      authToken - holds auth token
      Returns:
      PaymentProcessorResponse Object