Skip to content
← Back to Index

OnPaymentCreated

This hook runs after commands have been applied to a Payment Actor from the create message, but before the OnPaymentCommands hook. Commands returned will be applied to the payment and changes are available to the the OnPaymentCommands hook.

Type

filtrera
{
  hook: 'OnPaymentCreated'
  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.scheduleJob` Schedules a job
`effects.common.sendEmail` Queues an email for delivery through the Sendings system
`effects.common.validationError` Aborts the creation 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](/resources/actors/payment/commands/) you want to apply.

© 2024 Hantera AB. All rights reserved.