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 byDefaultPaymentServiceImpl
to 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 void
attachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, java.math.BigDecimal amount)
Attaches PaymentInfo to the assigned PaymentTransactionModel instance.protected CommonI18NService
getCommonI18NService()
protected KeyGenerator
getKeyGenerator()
protected ModelService
getModelService()
void
setCommonI18NService(CommonI18NService commonI18NService)
void
setKeyGenerator(KeyGenerator keyGenerator)
void
setModelService(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:
attachPaymentInfo
in 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)
-
-