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, restTemplateFields 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, validatorsFields 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.PaymentProcessorResponsecom.skava.payment.model.response.PaymentProcessorResponsecancelAuthorization(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponsecharge(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) booleanbooleancheckIfPaymentDetailsCanUpdate(Map<String, Object> otherProperties) booleancheckIfRequiredPropertiesExists(Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponsecreatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency) com.skava.payment.model.response.PaymentProcessorResponsecreatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String currency, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponsecom.skava.payment.model.response.PaymentProcessorResponsedirectCharge(String authorizationCode, BigDecimal amount, Map<String, Object> otherProperties) booleanbooleanbooleancom.skava.payment.model.response.PaymentProcessorResponsepostCreatePaymentProfileActions(com.skava.payment.model.dto.payment.Payment payment, List<com.skava.payment.model.entity.payment.PaymentPropertyEntity> requestedPaymentProperties) com.skava.payment.model.response.PaymentProcessorResponsepreAuthorize(String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponserefund(String authorizationCode, String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponseregister(String transactionType, BigDecimal amount, String mode, Map<String, Object> otherProperties) This method is to get session URL from providercom.skava.payment.model.response.PaymentProcessorResponseretrievePayment(String paymentCode, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponsescrubSecureData(Map<String, Object> otherProperties) booleansupportsOp(int op, Map<String, Object> otherProperties) com.skava.payment.model.response.PaymentProcessorResponseupdatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode) com.skava.payment.model.response.PaymentProcessorResponseupdatePaymentProfile(com.skava.payment.model.payment.PaymentInfo paymentInfo, String paymentCode, Map<String, Object> otherProperties) Methods inherited from class com.skava.paymentapp.util.AppAutowires
restTemplateMethods inherited from class com.skava.payment.service.impl.PaymentAutowires
getAuthHelper, getAuthProps, getFindProviderMasterServiceImpl, getMessageSource, getPaymentPluginHandlerMethods 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, getValidatorsUtilMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- AMapobject. A map of properties which needs to be passed to constructor while initializing.
-
-
Method Details
-
getPluginProperties
- Returns:
- properties A
Mapobject. A map of properties with which plugin is handled.
-
supportsOp
- Specified by:
supportsOpin interfacecom.skava.payment.processor.PaymentProcessor
-
preAuthorize
public com.skava.payment.model.response.PaymentProcessorResponse preAuthorize(String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) - Specified by:
preAuthorizein interfacecom.skava.payment.processor.PaymentProcessor
-
authorize
public com.skava.payment.model.response.PaymentProcessorResponse authorize(String paymentCode, BigDecimal amount, Map<String, Object> otherProperties) - Specified by:
authorizein 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:
chargein interfacecom.skava.payment.processor.PaymentProcessor
-
scrubSecureData
public com.skava.payment.model.response.PaymentProcessorResponse scrubSecureData(Map<String, Object> otherProperties) - Specified by:
scrubSecureDatain 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:
createPaymentProfilein 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:
createPaymentProfilein interfacecom.skava.payment.processor.PaymentProcessor
-
retrievePayment
public com.skava.payment.model.response.PaymentProcessorResponse retrievePayment(String paymentCode, Map<String, Object> otherProperties) - Specified by:
retrievePaymentin interfacecom.skava.payment.processor.PaymentProcessor
-
isBillingAddressRequired
public boolean isBillingAddressRequired()- Specified by:
isBillingAddressRequiredin 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:
cancelAuthorizationin 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:
refundin interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfRequiredPropertiesExists
- Specified by:
checkIfRequiredPropertiesExistsin interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfBillingAddressUpdateReqNewToken
public boolean checkIfBillingAddressUpdateReqNewToken()- Specified by:
checkIfBillingAddressUpdateReqNewTokenin interfacecom.skava.payment.processor.PaymentProcessor
-
checkIfPaymentDetailsCanUpdate
- Specified by:
checkIfPaymentDetailsCanUpdatein 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:
updatePaymentProfilein 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:
updatePaymentProfilein interfacecom.skava.payment.processor.PaymentProcessor
-
credit
public com.skava.payment.model.response.PaymentProcessorResponse credit(String authorizationCode, BigDecimal amount, Map<String, Object> otherProperties) - Specified by:
creditin interfacecom.skava.payment.processor.PaymentProcessor
-
directCharge
public com.skava.payment.model.response.PaymentProcessorResponse directCharge(String authorizationCode, BigDecimal amount, Map<String, Object> otherProperties) - Specified by:
directChargein interfacecom.skava.payment.processor.PaymentProcessor
-
isTokenRequired
public boolean isTokenRequired()- Specified by:
isTokenRequiredin interfacecom.skava.payment.processor.PaymentProcessor
-
isPostCreatePaymentProfileActionRequired
public boolean isPostCreatePaymentProfileActionRequired()- Specified by:
isPostCreatePaymentProfileActionRequiredin 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:
postCreatePaymentProfileActionsin 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:
registerin interfacecom.skava.payment.processor.PaymentProcessor- Parameters:
transactionType- AStringobject.amount- amount ABigDecimalobject.mode- AStringobject.otherProperties- AMapobject.- Returns:
- A
PaymentProcessorResponseobject.
-