Interface TransactionWebhookMessageService

All Known Implementing Classes:
DefaultTransactionWebhookMessageService

public interface TransactionWebhookMessageService
This service is responsible for sending the message that the PaymentTransaction state is changed during processing of the payment webhook.
Author:
Dima Myroniuk (dmyroniuk)
  • Method Details

    • sendTransactionWebhookMessage

      @Deprecated void sendTransactionWebhookMessage(String paymentTransactionContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Sends a message communicating the transaction's results.
      Parameters:
      paymentTransactionContextId - the ID of the payment transaction
      contextInfo - Request context information around sandbox and multitenant state
    • sendTransactionWebhookMessage

      void sendTransactionWebhookMessage(Payment payment, PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Sends the message of PaymentTransactionResultWebhookProducer#TYPE type, notifying the system that a payment transaction has results recorded via the webhook.
      Parameters:
      payment - the payment owning the transaction
      transaction - the payment transaction that recieved results
      transactionRequiredExternalInteraction - whether or not this transaction required external interaction
      contextInfo - Request context information around sandbox and multitenant state