Skip to content
← Back to Index

OnPaymentBeforeCreated

This hook runs before any command have been applied to a Payment Actor from the create message. Commands returned will be applied to the payment before the create message's commands.

Type

filtrera
{
  hook: 'OnPaymentBeforeCreated'
  payment: Payment
}

Effects

validationError Prevents the operation and returns an error to the caller.
paymentCommand Applies a command to the payment before the `create` message's commands.

© 2024 Hantera AB. All rights reserved.