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