Okay
  Public Ticket #3773911
Issue with Appointment Confirmation Before Payment Completion
Closed

Comments

  • Swanlines Studios started the conversation

    Hello,

    I am using the WooCommerce payment method to accept payments for bookings on my website since the PhonePe payment gateway is not directly supported in Amelia. However, I’ve encountered an issue where users receive confirmation emails stating their appointments are confirmed even though they have not completed the payment.

    Here’s the setup I’m using:

    1. I have integrated WooCommerce with Amelia for handling payments.
    2. The statuses in the booking flow are mapped as follows:
      • "On Hold" → Default appointment status: Pending
      • "Processing" → Default appointment status: Pending
      • "Completed" → Default appointment status: Paid

    Despite this configuration, the plugin sends a confirmation email to users as if the payment has been successfully processed, even when it is still pending or incomplete.

    Could you please guide me on how to ensure that:

    1. Appointments are marked as "Pending" until payment is successfully completed.
    2. Confirmation emails are sent only after payment completion.

    I suspect there might be a misconfiguration or an additional setting I need to enable either in Amelia or WooCommerce.

    Looking forward to your guidance on resolving this issue.

    Thank you,

    Swanlines Studios

  •  1,552
    Uroš replied

    Hello Swanlines Studios,

    Thank you for reaching out and providing detailed information about your setup. Here's how you can ensure that appointments remain in "Pending" status until payments are successfully completed and that confirmation emails are sent only after payment completion:

    1. Verify WooCommerce Status Mapping

    Ensure that the payment statuses in WooCommerce are properly mapped to Amelia appointment statuses:

    • On HoldPending
    • ProcessingPending
    • CompletedApproved

    To check this:

    • Go to Amelia > Settings > Payments > WooCommerce and confirm that these mappings are correctly set.
    2. Test the Flow

    After adjusting these settings, perform a test booking to verify:

    • The appointment remains Pending until payment is completed.
    • The confirmation email is only sent once the status is updated to Approved.

    Let me know if you need further assistance with these steps.

    Best regards,

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables