As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #4027646
Need Reliable Hook or Trigger on Appointment Cancellation (for Automatic Refund)
Open

Comments

  •  3
    Colin started the conversation

    Hi there

    We’re using the built-in Stripe integration and would like to automatically issue a refund when an appointment is cancelled by a customer more than 24 hours before the start time.

    We’ve tried all of the following WordPress hooks based on your documentation:

    • amelia_before_cancel_appointment
    • wpamelia_booking_cancel_appointment
    • amelia_after_booking_canceled

    None of these seem to trigger when a customer cancels an appointment via the Customer Panel, or when the admin cancels it via the backend calendar.

    We’ve also confirmed the cancellation requests go through:

    bash
    CopyEdit
    POST /wp-admin/admin-ajax.php?action=wpamelia_api&call=/appointments/:id
    

    …but WordPress actions like admin_init or init don't seem to fire during that process.

    What we need: Could you please confirm:

    1. Which hook (if any) is reliably fired during or immediately after a cancellation?
    2. If no WordPress hook is triggered, can you suggest how to intercept the cancellation call or extend Amelia safely?
    3. Do you offer a recommended method for integrating Stripe refund logic on cancellation?

    Thanks in advance — we’re happy to implement it with a custom plugin, just need a reliable point of integration.


    Kind regards
    Colin

  •  3
    Colin replied

    I tested the amelia_after_booking_canceled hook using a diagnostic plugin that logs when the hook is fired. While the plugin loaded properly and logging works, the hook never fired — even when canceling from the Customer Panel. This seems to indicate that amelia_after_booking_canceled is not being called at all.

    Can you confirm whether:

    • This hook is still functional and supported?
    • It works specifically when canceling appointments via the Customer Panel?
    • There are any settings or context limitations where this hook wouldn't run?