Skip to content

OnPaymentBeforeCreated

Back to Index

This hook runs before any command have been applied to a Payment Actor from the [create]/reference/actors/payment/messages/create) message. Commands returned will be applied to the order before the create message’s commands.

Type

{
hook: 'OnPaymentBeforeCreated'
payment: Payment
}

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.validationError Aborts the creation of the payment and returns the error to the caller.

effects.order.command.* Applies a command to the actor. Replace * with the type of command you want to apply.

Back to Index