Class DefaultCreditCardPaymentInfoStrategy
java.lang.Object
de.hybris.platform.payment.strategy.impl.DefaultCreditCardPaymentInfoStrategy
- All Implemented Interfaces:
PaymentInfoCreatorStrategy
public class DefaultCreditCardPaymentInfoStrategy
extends Object
implements PaymentInfoCreatorStrategy
This class is used by
DefaultPaymentServiceImpl to attaches a PaymentInfo to
the payment transaction instance during authorization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, BigDecimal amount) Attaches PaymentInfo to the assigned PaymentTransactionModel instance.protected CommonI18NServiceprotected KeyGeneratorprotected ModelServicevoidsetCommonI18NService(CommonI18NService commonI18NService) voidsetKeyGenerator(KeyGenerator keyGenerator) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultCreditCardPaymentInfoStrategy
public DefaultCreditCardPaymentInfoStrategy()
-
-
Method Details
-
attachPaymentInfo
public void attachPaymentInfo(PaymentTransactionModel paymentTransactionModel, UserModel userModel, CardInfo cardInfo, 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
-
setModelService
-
getKeyGenerator
-
setKeyGenerator
-
getCommonI18NService
-
setCommonI18NService
-