Package com.skava.paymentapp.processor
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 Summary
FieldsModifier and TypeFieldDescriptionProperties required to connect with Default payment process.Fields inherited from class com.skava.paymentapp.util.AppAutowires
appMarketplaceUtils, cacheManager, collectionRepositoryObj, commonDependencies, createExternalTransactionService, createPaymentItemService, createPaymentService, createTransactionService, findPaymentItemService, findPaymentService, findTransactionService, marketplaceEndpoint, patchTransactionService, patchUpdatePaymentService, paymentOptionProcess, paymentPropertyRepositoryObj, paymentProviderRepositoryObj, paymentRepositoryObj, pluginPaymentServices, requestReferenceRepository, restTemplate
Fields inherited from class com.skava.payment.service.impl.PaymentAutowires
authHelper, authProps, context, encryptionHelper, findProviderMasterServiceImpl, messageSource, objectMapper, paymentEventService, paymentEventServiceExt, paymentMessageSender, paymentPluginHandler, paymentUtil, pluginservice, redisTemplate, serviceAutoWires, specificationUtil, transactionHandler, transactionValidatorHelper, validators
Fields inherited from class com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
authTokenHandler, cacheUtil, collectionAttributeRepository, collectionPropertyRepository, collectionProviderAssembler, collectionProviderRepository, collectionRepository, paymentAssembler, paymentCacheUtil, paymentItemAssembler, paymentItemRepository, paymentPropertyRepository, paymentProviderRepository, paymentRepository, providerMasterAssembler, providerMasterRepository, transactionAssembler, transactionRepository, validatorsUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.skava.payment.model.response.PaymentProcessorResponse
com.skava.payment.model.response.PaymentProcessorResponse
cancelAuthorization
(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
charge
(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) boolean
boolean
checkIfPaymentDetailsCanUpdate
(Map<String, Object> otherProperties) boolean
checkIfRequiredPropertiesExists
(Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
createPaymentProfile
(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency) com.skava.payment.model.response.PaymentProcessorResponse
createPaymentProfile
(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
com.skava.payment.model.response.PaymentProcessorResponse
directCharge
(String authorizationCode, BigDecimal amount, Map<String, Object> otherProperties) boolean
boolean
boolean
com.skava.payment.model.response.PaymentProcessorResponse
postCreatePaymentProfileActions
(com.skava.payment.model.dto.payment.Payment payment, List<com.skava.payment.model.entity.payment.PaymentPropertyEntity> requestedPaymentProperties) com.skava.payment.model.response.PaymentProcessorResponse
preAuthorize
(String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
refund
(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) 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 providercom.skava.payment.model.response.PaymentProcessorResponse
retrievePayment
(String paymentCode, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
scrubSecureData
(Map<String, Object> otherProperties) boolean
supportsOp
(int op, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponse
updatePaymentProfile
(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode) com.skava.payment.model.response.PaymentProcessorResponse
updatePaymentProfile
(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode, Map<String, Object> otherProperties) Methods inherited from class com.skava.paymentapp.util.AppAutowires
restTemplate
Methods inherited from class com.skava.payment.service.impl.PaymentAutowires
getAuthHelper, getAuthProps, getFindProviderMasterServiceImpl, getMessageSource, getPaymentPluginHandler
Methods inherited from class com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
getAuthTokenHandler, getCacheUtil, getCollectionAttributeRepository, getCollectionPropertyRepository, getCollectionProviderAssembler, getCollectionProviderRepository, getCollectionRepository, getPaymentAssembler, getPaymentCacheUtil, getPaymentItemAssembler, getPaymentItemRepository, getPaymentPropertyRepository, getPaymentProviderRepository, getPaymentRepository, getProviderMasterAssembler, getProviderMasterRepository, getTransactionAssembler, getTransactionRepository, getValidatorsUtil
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.payment.processor.PaymentProcessor
addAdditionalPaymentDetails, checkForThreeDSecure, getCreatePaymentStatus, getCreatePaymentStatus, getTransactionByRequestId, isNewPaymentCreationOnPropertiesUpdate, retrieveTransaction, skipTransactionStatusCheck
-
Field Details
-
pluginProperties
Properties required to connect with Default payment process. These properties are created while creating PaymentProviderMaster and CollectionProvider.
-
-
Constructor Details
-
AppPaymentProcessor
- Parameters:
properties
- AMap
object. A map of properties which needs to be passed to constructor while initializing.
-
-
Method Details
-
getPluginProperties
- Returns:
- properties A
Map
object. A map of properties with which plugin is handled.
-
supportsOp
- Specified by:
supportsOp
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.skava.payment.processor.PaymentProcessor
-
scrubSecureData
public com.skava.payment.model.response.PaymentProcessorResponse scrubSecureData(Map<String, Object> otherProperties) - Specified by:
scrubSecureData
in interfacecom.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 interfacecom.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 interfacecom.skava.payment.processor.PaymentProcessor
-
retrievePayment
public com.skava.payment.model.response.PaymentProcessorResponse retrievePayment(String paymentCode, Map<String, Object> otherProperties) - Specified by:
retrievePayment
in interfacecom.skava.payment.processor.PaymentProcessor
-
isBillingAddressRequired
public boolean isBillingAddressRequired()- Specified by:
isBillingAddressRequired
in interfacecom.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 interfacecom.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 interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfRequiredPropertiesExists
- Specified by:
checkIfRequiredPropertiesExists
in interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfBillingAddressUpdateReqNewToken
public boolean checkIfBillingAddressUpdateReqNewToken()- Specified by:
checkIfBillingAddressUpdateReqNewToken
in interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfPaymentDetailsCanUpdate
- Specified by:
checkIfPaymentDetailsCanUpdate
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.skava.payment.processor.PaymentProcessor
-
isTokenRequired
public boolean isTokenRequired()- Specified by:
isTokenRequired
in interfacecom.skava.payment.processor.PaymentProcessor
-
isPostCreatePaymentProfileActionRequired
public boolean isPostCreatePaymentProfileActionRequired()- Specified by:
isPostCreatePaymentProfileActionRequired
in interfacecom.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 interfacecom.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 interfacecom.skava.payment.processor.PaymentProcessor
- Parameters:
transactionType
- AString
object.amount
- amount ABigDecimal
object.mode
- AString
object.otherProperties
- AMap
object.- Returns:
- A
PaymentProcessorResponse
object.
-