Interface PaymentResponseUtil

All Known Implementing Classes:
DefaultPaymentResponseUtil

public interface PaymentResponseUtil
  • Method Details

    • buildPaymentResponse

      PaymentResponse buildPaymentResponse(@NonNull @NonNull PaymentRequest paymentRequest, @NonNull @NonNull PaymentGatewayType gatewayType, @NonNull @NonNull TransactionType transactionType)
      Builds and populates a PaymentResponse based on the provided PaymentRequest
      Parameters:
      paymentRequest - the PaymentRequest used to initiate the related transaction
      gatewayType - the type of gateway used to execute the transaction
      transactionType - the type of transaction that was executed
      Returns:
      a PaymentResponse populated based on the provided PaymentRequest
    • buildInitialPaymentResponse

      PaymentResponse buildInitialPaymentResponse(@NonNull @NonNull GatewayTransactionResponse transactionResponse, @NonNull @NonNull PaymentGatewayType gatewayType)
      Builds and populates a PaymentResponse based on the provided GatewayTransactionResponse and PaymentGatewayType
      Parameters:
      transactionResponse - the GatewayTransactionResponse used to create the related transaction
      gatewayType - the type of gateway used to execute the transaction
      Returns:
      a PaymentResponse populated based on the provided GatewayTransactionResponse and Payment