Skip to content

OnPaymentCommands

Back to Index

This hook runs after commands have been applied to a Payment Actor from the create or applyCommands message. Commands returned from rules does not trigger the hook again.

Type

{
hook: 'OnPaymentCommands'
before: Payment // The order before the commands were applied
payment: Payment // The order after the commands were applied
}

Effects

effects.common.sendMessage Sends a message to another actor after the payment has been saved. Responses from the target actor is ignored.

effects.common.callReactor Calls a reactor method after the payment has been saved. Responses from the reactor is ignored.

effects.common.validationError Aborts the creation/update of the payment and returns the error to the caller.

effects.payment.command.* Applies a command to the actor. Replace * with the type of [command]/reference/actors/payment/commands) you want to apply.

Back to Index