• Resolved shubham1129

    (@shubham1129)


    Hello, I am using wp-form plugin and stripe payment in this form. I want to add some customizations for some reason after, I want just make sure the priority of these two hooks.
    wpforms_process_complete and wpforms_stripe_process_complete.
    I want to know which hook will be fire first after form submission from both of them.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @shubham1129,

    Thank you for reaching out! I’ve detailed the exact workflow for you below.

    The Submission Workflow

    Priority 1: wpforms_stripe_process_complete Think of this as the “Payment Validation” stage. This hook fires the moment Stripe confirms the credit card transaction was successful. Because this happens before the entry is fully committed to your WordPress database, it is the ideal place to handle transaction-specific details.

    • Best for: Adding custom metadata to a Stripe charge.
    • Source File: /wp-content/plugins/wpforms-lite/src/Integrations/Stripe/Process.php

    Priority 2: wpforms_process_complete This is the “Final Completion” stage. It fires at the very end of the entire form submission process. By this point, the entry has been saved, an Entry ID has been generated, and all payment data is finalized.

    • Best for: Actions that depend on the existence of an Entry ID, such as registering a new user.
    • Source File: wp-content/plugins/wpforms-lite/includes/class-process.php

    Documentation Links

    Knowing this order should help you place your customizations exactly where they need to be.

    Let me know if you need any more help with WPForms Lite.

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @shubham1129,

    We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

    Thread Starter shubham1129

    (@shubham1129)

    Hello @rsouzaam ,
    Okay, This will help me regarding my development and customisation. Thank you for detailed explanation of workflow and process.

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @shubham1129

    You’re very welcome!

    It looks like you’ve marked this post as resolved. If you’d like more help with using WPForms Lite, please feel free to reach out.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.