Class DefaultCreditCardPaymentInfoStrategy
- java.lang.Object
-
- de.hybris.platform.payment.strategy.impl.DefaultCreditCardPaymentInfoStrategy
-
- All Implemented Interfaces:
PaymentInfoCreatorStrategy
public class DefaultCreditCardPaymentInfoStrategy extends java.lang.Object implements PaymentInfoCreatorStrategy
This class is used byDefaultPaymentServiceImplto attaches a PaymentInfo to the payment transaction instance during authorization.
-
-
Constructor Summary
Constructors Constructor Description DefaultCreditCardPaymentInfoStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, java.math.BigDecimal amount)Attaches PaymentInfo to the assigned PaymentTransactionModel instance.protected CommonI18NServicegetCommonI18NService()protected KeyGeneratorgetKeyGenerator()protected ModelServicegetModelService()voidsetCommonI18NService(CommonI18NService commonI18NService)voidsetKeyGenerator(KeyGenerator keyGenerator)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
attachPaymentInfo
public void attachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, java.math.BigDecimal amount)
Attaches PaymentInfo to the assigned PaymentTransactionModel instance.- Specified by:
attachPaymentInfoin interfacePaymentInfoCreatorStrategy- Parameters:
paymentTransactionModel- the payment transactionuserModel- the usercardInfo- the card infoamount- the amount
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getKeyGenerator
protected KeyGenerator getKeyGenerator()
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
-