PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Send form only when Paypal Paid or Force Payment before Submission

  1. BrookSEO
    Member

    I have a client who has an application form for their services. The form includes a $30 application fee. I have the form set-up with Paypal. But, some clients are not paying the fee after submitting the form.

    Is there a way to not accept the form without payment?

    Posted 12 years ago on Monday January 23, 2012 | Permalink
  2. You can not prevent the form submission from happening as this is what directs the user to PayPal; however, on your PayPal feed are options to:

    • disable the admin notification until the payment has been received
    • disable the user notification until the payment has been received
    • if your form is setup to create a post, you can disable the post creation until the payment has been received
    • if your form is setup to create a user (via the User Registration Add-on) you can disable the user creation until the payment has been received
    • if your form is setup to create a site (via the User Registration Add-on), you can disable the site creation until the payment has been recevied

    If you have custom code tied to the gform_after_submission hook, you can instead tie that custom code to the gform_paypal_fulfillment hook which would only be triggered once the payment has been received.

    Posted 12 years ago on Wednesday January 25, 2012 | Permalink
  3. Are you saying that this can be done with the custom code your referred to? I am not clear.

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink
  4. The bullets I listed are all functionality currently supported by the GF PayPal add-on or the GF User Registration add-on.

    The bit about custom code means that if you have any custom code you are currently triggering after a form submission (via the gform_after_submission hook) you would want to tie that custom code to the gform_paypal_fulfillment hook).

    Posted 12 years ago on Tuesday January 31, 2012 | Permalink