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.

Submitting to WHMCS after registration

  1. designplushosting2
    Member

    Hello,

    I am using the user registration addon, for creating a new user / site in multisite. on my Registration form, I'm using (gform_post_submission) to pass data to WHMCS and create a new client

    Here is my code in functions.php: http://pastebin.com/McpH9wF4

    This is not sending details to WHMCS, any thoughts on why?

    Thanks

    Posted 11 years ago on Monday February 11, 2013 | Permalink
  2. The gform_post_submission hook was deprecated. Please change to gform_after_submission.

    I don't see anything obviously wrong with that code. Can you add some debugging echoes or print_r statements along the way to see if the arrays contain what you think they should right after you assign the values? I would print_r the $entry and also the $fields, possibly the $data as well.

    I'm assuming that the form ID 3 is correct and all the field IDs are correct as well.

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink