Interface PaymentRequestService

All Known Implementing Classes:
DefaultPaymentRequestService

public interface PaymentRequestService
This service is responsible for building PaymentRequests to be passed to PaymentGatewayTransactionService methods to execute work against a payment gateway
Author:
Chris Kittrell (ckittrell)
  • Method Details

    • createPaymentRequest

      @Deprecated(since="1.7.2") default com.broadleafcommerce.paymentgateway.domain.PaymentRequest createPaymentRequest(Payment payment, PaymentTransaction paymentTransaction)
      Creates a PaymentRequest, based on the provided Payment & PaymentTransaction
      Parameters:
      payment - the cart's payment that is to be authorized
      paymentTransaction - the cart payment's pending representation of the transaction that is to be executed
      Returns:
      the created PaymentRequest
    • createPaymentRequest

      com.broadleafcommerce.paymentgateway.domain.PaymentRequest createPaymentRequest(Payment payment, PaymentTransaction paymentTransaction, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates a PaymentRequest, based on the provided Payment, PaymentTransaction and ContextInfo
      Parameters:
      payment - the cart's payment that is to be authorized
      paymentTransaction - the cart payment's pending representation of the transaction that is to be executed
      contextInfo - context information around sandboxing and multitenant state
      Returns:
      the created PaymentRequest