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 Summary
Modifier and TypeMethodDescriptionvoidsendTransactionWebhookMessage(Payment payment, PaymentTransaction transaction, boolean transactionRequiredExternalInteraction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the message ofPaymentTransactionResultWebhookProducer#TYPEtype, notifying the system that a payment transaction has results recorded via the webhook.voidsendTransactionWebhookMessage(String paymentTransactionContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.
-
Method Details
-
sendTransactionWebhookMessage
@Deprecated void sendTransactionWebhookMessage(String paymentTransactionContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Sends a message communicating the transaction's results.- Parameters:
paymentTransactionContextId- the ID of the payment transactioncontextInfo- 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 ofPaymentTransactionResultWebhookProducer#TYPEtype, notifying the system that a payment transaction has results recorded via the webhook.- Parameters:
payment- the payment owning the transactiontransaction- the payment transaction that recieved resultstransactionRequiredExternalInteraction- whether or not this transaction required external interactioncontextInfo- Request context information around sandbox and multitenant state
-
sendTransactionWebhookMessage(Payment, PaymentTransaction, boolean, ContextInfo)