Class DefaultPaymentResponseInterpretationStrategy
java.lang.Object
de.hybris.platform.acceleratorservices.payment.strategies.impl.AbstractPaymentResponseInterpretationStrategy
de.hybris.platform.acceleratorservices.payment.cybersource.strategies.impl.DefaultPaymentResponseInterpretationStrategy
- All Implemented Interfaces:
PaymentResponseInterpretationStrategy
public class DefaultPaymentResponseInterpretationStrategy
extends AbstractPaymentResponseInterpretationStrategy
Default impl of PaymentResponseInterpretationStrategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Converter<Map<String,String>, CreateSubscriptionResult> interpretResponse(Map<String, String> params, String clientRef, Map<String, PaymentErrorField> errors) This method defines how to interpret aCreateSubscriptionResultthat represents the set of parameters returned from of a profile creation request with an external payment service.voidsetCreateSubscriptionResultConverter(Converter<Map<String, String>, CreateSubscriptionResult> createSubscriptionResultConverter) Methods inherited from class de.hybris.platform.acceleratorservices.payment.strategies.impl.AbstractPaymentResponseInterpretationStrategy
getOrCreatePaymentErrorField, parseMissingFields
-
Constructor Details
-
DefaultPaymentResponseInterpretationStrategy
public DefaultPaymentResponseInterpretationStrategy()
-
-
Method Details
-
interpretResponse
public CreateSubscriptionResult interpretResponse(Map<String, String> params, String clientRef, Map<String, PaymentErrorField> errors) Description copied from interface:PaymentResponseInterpretationStrategyThis method defines how to interpret aCreateSubscriptionResultthat represents the set of parameters returned from of a profile creation request with an external payment service.- Parameters:
params- - The response params necessary to complete payment profile creation with an external service.clientRef- - Unique identifier representing the client in a call to external services.errors- - Map of payment details errors populated by external service.
-
getCreateSubscriptionResultConverter
protected Converter<Map<String,String>, getCreateSubscriptionResultConverter()CreateSubscriptionResult> -
setCreateSubscriptionResultConverter
public void setCreateSubscriptionResultConverter(Converter<Map<String, String>, CreateSubscriptionResult> createSubscriptionResultConverter)
-