Interface PaymentResponseInterpretationStrategy

All Known Implementing Classes:
AbstractPaymentResponseInterpretationStrategy, DefaultPaymentResponseInterpretationStrategy, HopPaymentResponseInterpretationStrategy

public interface PaymentResponseInterpretationStrategy
Strategy for interpreting the response to a payment profile creation request.
  • Method Details

    • interpretResponse

      CreateSubscriptionResult interpretResponse(Map<String,String> responseParams, String clientRef, Map<String,PaymentErrorField> errors)
      This method defines how to interpret a CreateSubscriptionResult that represents the set of parameters returned from of a profile creation request with an external payment service.
      Parameters:
      responseParams - - 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.