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.

Register only when paid

  1. http://www.gravityhelp.com/documentation/page/User_Registration_Add-On

    PayPal Integration
    
    The User Registration Add-On integrates with the Gravity Forms PayPal Add-On to provide the following options:
    
    Register user only when a payment is received.
    When this option is enabled, the user will not be registered until the PayPal payment has been received.

    Could you point me to how I need to set this?
    I have PP and UserReg add-ons enabled. It is a network install (subdomain).

    The form asks for username, name, prefix. The new user and blog are created before PP payment is taken. I can't find the option to delay this.

    Also I have tried to add my own validation:

    add_filter('gform_validation', 'my_signup_check');
    function my_signup_check($validation_result){
      $forceerror = true;
      if( $forceerror ){
        $invalid = true;
        foreach($validation_result['form']['fields'] as &$field){
          if($field['id'] == '9_3'){
            $field['failed_validation']  = true;
            $field['validation_message'] = '** THIS IS A FORCED ERROR **';
            break;
          }
        }
      }
      if( $invalid ) $validation_result['is_valid'] = false;
      return $validation_result;
    }

    I can see that it runs, but it doesn't actually stop the form from submitting.

    It is tricky to write up any non-trivial issue description in these text boxes.

    Posted 8 years ago on Thursday November 24, 2011 | Permalink
  2. Can I ask how you configured the PayPal Form (Transaction Settings) to create the user automatically? I don't see an option for this even though the documentation seems to indicate that there is one.

    Sorry to be asking a question and not being able to help directly but I hope that you've had success solving your issue.

    [UPDATE]
    I answered my own question in this thread, http://www.gravityhelp.com/forums/topic/register-user-only-when-a-payment-is-received

    Posted 8 years ago on Wednesday November 30, 2011 | Permalink
  3. You integrate Gravity Forms with the User Registration Add-On and the Paypal Add-On to accomplish this.

    - Create your form that contains both the user registration related fields and the pricing fields for the purchase.

    - Use the User Registration Add-On to create a PayPal Feed for that form that creates the user based on the settings you configure.

    - Use the PayPal Add-On to create a PayPal Feed for that form that integrates with PayPal. If you created a User Registration Feed then additional User Registration related options will appear in the PayPal Feed settings. Those options include when to create the user (after payment is received) and if it is a subscription, what to do when the subscription is canceled.

    So you setup the User Registration integration first, then when you setup the PayPal integration you will see User Registration related settings that you can configure.

    Posted 8 years ago on Wednesday November 30, 2011 | Permalink