public class DefaultAcceleratorPaymentService extends java.lang.Object implements PaymentService
PaymentService| Constructor and Description |
|---|
DefaultAcceleratorPaymentService() |
public PaymentData beginHopCreatePaymentSubscription(java.lang.String siteName, java.lang.String responseUrl, java.lang.String merchantCallbackUrl, CustomerModel customer, CreditCardPaymentInfoModel cardInfo, AddressModel paymentAddress)
PaymentServicebeginHopCreatePaymentSubscription in interface PaymentServicesiteName - - The name of the current CMS siteresponseUrl - - The URL used by the CMS site to handle responses from the Hosted Order Page or Silent Order Post.merchantCallbackUrl - - The URL of the MerchantCallbackController used by the Provider to send validation responses.customer - - The Customer details.cardInfo - - If available will contain any existing credit card details used to pre-populate the HOP.paymentAddress - - If available contains the customer's billing address, used to pre-populate the HOP.PaymentData object which contains all data required to create a subscription.public PaymentData beginSopCreatePaymentSubscription(java.lang.String siteName, java.lang.String responseUrl, java.lang.String merchantCallbackUrl, CustomerModel customer, CreditCardPaymentInfoModel cardInfo, AddressModel paymentAddress)
PaymentServicebeginSopCreatePaymentSubscription in interface PaymentServicesiteName - - The name of the current CMS siteresponseUrl - - The URL used by the CMS site to handle responses from the Hosted Order Page or Silent Order Post.merchantCallbackUrl - - The URL of the MerchantCallbackController used by the Provider to send validation responses.customer - - The Customer details.cardInfo - - If available will contain any existing credit card details used to pre-populate the HOP.paymentAddress - - If available contains the customer's billing address, used to pre-populate the HOP.PaymentData object which contains all data required to create a subscription.public PaymentSubscriptionResultItem completeHopCreatePaymentSubscription(CustomerModel customerModel, boolean saveInAccount, java.util.Map<java.lang.String,java.lang.String> parameters)
PaymentServicecompleteHopCreatePaymentSubscription in interface PaymentServicecustomerModel - - The Customer details.saveInAccount - - Flag indicating if this new payment card will be stored in the customer's profile.parameters - - a Map of key-value paired Strings with the result data returned from the Hosted Order Page.PaymentSubscriptionResultItem object which contains the newly created credit card.public PaymentSubscriptionResultItem completeSopCreatePaymentSubscription(CustomerModel customerModel, boolean saveInAccount, java.util.Map<java.lang.String,java.lang.String> parameters)
PaymentServicecompleteSopCreatePaymentSubscription in interface PaymentServicecustomerModel - - The Customer details.saveInAccount - - Flag indicating if this new payment card will be stored in the customer's profile.parameters - - a Map of key-value paired Strings with the result data returned from the Hosted Order Page.PaymentSubscriptionResultItem object which contains the newly created credit card.public void handleCreateSubscriptionCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
PaymentServicehandleCreateSubscriptionCallback in interface PaymentServiceparameters - - a Map of key-value paired Strings with the result data returned from the callback handler.protected void markPaymentValidated(CreateSubscriptionResult response)
public void handleFraudUpdateCallback(java.util.Map<java.lang.String,java.lang.String> parameters)
PaymentServicehandleFraudUpdateCallback in interface PaymentServiceparameters - a Map of key-value paired Strings with the result data returned from the callback handlerpublic void setPaymentTransactionReviewResult(PaymentTransactionEntryModel reviewDecisionEntry, java.lang.String guid)
setPaymentTransactionReviewResult in interface PaymentServicereviewDecisionEntry - - payment transaction entry of REVIEW_DECISION typeguid - - AbstractOrderModel.GUID to which PaymentTransaction will
be addedprotected UserService getUserService()
public void setUserService(UserService userService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected CartService getCartService()
public void setCartService(CartService cartService)
public CreditCardPaymentSubscriptionDao getCreditCardPaymentSubscriptionDao()
public void setCreditCardPaymentSubscriptionDao(CreditCardPaymentSubscriptionDao creditCardPaymentSubscriptionDao)
protected PaymentFormActionUrlStrategy getPaymentFormActionUrlStrategy()
public void setPaymentFormActionUrlStrategy(PaymentFormActionUrlStrategy paymentFormActionUrlStrategy)
protected PaymentResponseInterpretationStrategy getPaymentResponseInterpretation()
public void setPaymentResponseInterpretation(PaymentResponseInterpretationStrategy paymentResponseInterpretation)
protected PaymentResponseInterpretationStrategy getHopPaymentResponseInterpretation()
public void setHopPaymentResponseInterpretation(PaymentResponseInterpretationStrategy paymentResponseInterpretation)
protected Converter<CreateSubscriptionRequest,PaymentData> getPaymentDataConverter()
public void setPaymentDataConverter(Converter<CreateSubscriptionRequest,PaymentData> paymentDataConverter)
protected SiteConfigService getSiteConfigService()
public void setSiteConfigService(SiteConfigService siteConfigService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected CreateSubscriptionRequestStrategy getCreateSubscriptionRequestStrategy()
public void setCreateSubscriptionRequestStrategy(CreateSubscriptionRequestStrategy createSubscriptionRequestStrategy)
protected CreateSubscriptionResultValidationStrategy getCreateSubscriptionResultValidationStrategy()
public void setCreateSubscriptionResultValidationStrategy(CreateSubscriptionResultValidationStrategy createSubscriptionResultValidationStrategy)
protected SignatureValidationStrategy getSignatureValidationStrategy()
public void setSignatureValidationStrategy(SignatureValidationStrategy signatureValidationStrategy)
protected CreditCardPaymentInfoCreateStrategy getCreditCardPaymentInfoCreateStrategy()
public void setCreditCardPaymentInfoCreateStrategy(CreditCardPaymentInfoCreateStrategy creditCardPaymentInfoCreateStrategy)
protected PaymentTransactionStrategy getPaymentTransactionStrategy()
public void setPaymentTransactionStrategy(PaymentTransactionStrategy paymentTransactionStrategy)
protected FraudCallbackStrategy getFraudCallbackStrategy()
public void setFraudCallbackStrategy(FraudCallbackStrategy fraudCallbackStrategy)
protected ClientReferenceLookupStrategy getClientReferenceLookupStrategy()
public void setClientReferenceLookupStrategy(ClientReferenceLookupStrategy clientReferenceLookupStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.