Skip to content

Payments & Orders Actions ​

Action hooks fired during the payment lifecycle (Pro) — order creation, payment status transitions, refunds, and gateway IPN.

16 unique action hooks currently map to this category, across 24 call sites.

Hook Inventory ​

HookEditionCall SitesFirst Source
fluent_booking/after_delete_orderCore1fluent-booking/app/Hooks/Handlers/CleanupHandlers/BookingCleaner.php:47
fluent_booking/after_draft_order_createdPRO1fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:125
fluent_booking/after_order_items_createdPRO1fluent-booking-pro/app/Services/OrderHelper.php:65
fluent_booking/before_delete_orderCore1fluent-booking/app/Hooks/Handlers/CleanupHandlers/BookingCleaner.php:43
fluent_booking/ipn_paypal_action_web_acceptPRO1fluent-booking-pro/app/Services/Integrations/PaymentMethods/Paypal/API/IPN.php:135
fluent_booking/payment/ipn_endpoint_PRO1fluent-booking-pro/app/Hooks/Handlers/GlobalPaymentHandler.php:65
fluent_booking/payment/pay_order_with_PRO1fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:135
fluent_booking/payment/payment_settings_update_PRO1fluent-booking-pro/app/Http/Controllers/PaymentMethodController.php:56
fluent_booking/payment/status_changedCore + PRO4fluent-booking/app/Http/Controllers/SchedulesController.php:325
fluent_booking/payment/status_changed_PRO1fluent-booking-pro/app/Http/Controllers/TransactionController.php:42
fluent_booking/payment/update_payment_status_PRO2fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:512
fluent_booking/payment/update_payment_status_paidCore2fluent-booking/app/Http/Controllers/SchedulesController.php:264
fluent_booking/refund_payment_Core2fluent-booking/app/Http/Controllers/SchedulesController.php:288
fluent_booking/register_payment_methodsPRO1fluent-booking-pro/app/Hooks/Handlers/GlobalPaymentHandler.php:31
fluent_booking/transaction_updatedPRO1fluent-booking-pro/app/Http/Controllers/TransactionController.php:46
fluent-booking/before_render_payment_method_PRO3fluent-booking-pro/app/Services/Integrations/PaymentMethods/Offline/Offline.php:224

fluent_booking/after_delete_order ​

  • Type: action
  • Edition: Core
  • Call sites: 1

Source locations

  • fluent-booking/app/Hooks/Handlers/CleanupHandlers/BookingCleaner.php:47

Example

php
add_action('fluent_booking/after_delete_order', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/after_draft_order_created ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:125

Example

php
add_action('fluent_booking/after_draft_order_created', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/after_order_items_created ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Services/OrderHelper.php:65

Example

php
add_action('fluent_booking/after_order_items_created', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/before_delete_order ​

  • Type: action
  • Edition: Core
  • Call sites: 1

Source locations

  • fluent-booking/app/Hooks/Handlers/CleanupHandlers/BookingCleaner.php:43

Example

php
add_action('fluent_booking/before_delete_order', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/ipn_paypal_action_web_accept ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/Paypal/API/IPN.php:135

Example

php
add_action('fluent_booking/ipn_paypal_action_web_accept', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/ipn_endpoint_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Hooks/Handlers/GlobalPaymentHandler.php:65

Example

php
add_action('fluent_booking/payment/ipn_endpoint_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/pay_order_with_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:135

Example

php
add_action('fluent_booking/payment/pay_order_with_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/payment_settings_update_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Http/Controllers/PaymentMethodController.php:56

Example

php
add_action('fluent_booking/payment/payment_settings_update_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/status_changed ​

  • Type: action
  • Edition: Core + PRO
  • Call sites: 4

Source locations

  • fluent-booking/app/Http/Controllers/SchedulesController.php:325
  • fluent-booking-pro/app/Http/Controllers/TransactionController.php:41
  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:477
  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:656

Example

php
add_action('fluent_booking/payment/status_changed', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/status_changed_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Http/Controllers/TransactionController.php:42

Example

php
add_action('fluent_booking/payment/status_changed_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/update_payment_status_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 2

Source locations

  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:512
  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/BasePaymentMethod.php:657

Example

php
add_action('fluent_booking/payment/update_payment_status_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/payment/update_payment_status_paid ​

  • Type: action
  • Edition: Core
  • Call sites: 2

Source locations

  • fluent-booking/app/Http/Controllers/SchedulesController.php:264
  • fluent-booking/app/Modules/MCP/Support/BookingWriter.php:681

Example

php
add_action('fluent_booking/payment/update_payment_status_paid', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/refund_payment_ ​

  • Type: action
  • Edition: Core
  • Call sites: 2

Source locations

  • fluent-booking/app/Http/Controllers/SchedulesController.php:288
  • fluent-booking/app/Modules/MCP/Support/BookingWriter.php:822

Example

php
add_action('fluent_booking/refund_payment_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/register_payment_methods ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Hooks/Handlers/GlobalPaymentHandler.php:31

Example

php
add_action('fluent_booking/register_payment_methods', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent_booking/transaction_updated ​

  • Type: action
  • Edition: PRO
  • Call sites: 1

Source locations

  • fluent-booking-pro/app/Http/Controllers/TransactionController.php:46

Example

php
add_action('fluent_booking/transaction_updated', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));

fluent-booking/before_render_payment_method_ ​

  • Type: action
  • Edition: PRO
  • Call sites: 3

Source locations

  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/Offline/Offline.php:224
  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/Paypal/Paypal.php:440
  • fluent-booking-pro/app/Services/Integrations/PaymentMethods/Stripe/Stripe.php:699

Example

php
add_action('fluent-booking/before_render_payment_method_', function (...$args) {
    // Your custom logic here.
}, 10, count($args ?? []));