Donation API donation form not found 102 code error

Options

Hello,

In continuing with the donation API, I was able to post to server, but I now receive a 102 code error in XML format with an 'unspecified' reason:

Error: The donation form was not found or is not accessible. If the form exists, be sure that it is published, not archived, and in a security category to which the user has access

I made sure that the PageBuilder form and Ghost form have an 'active' status and aren't archived. The security category is being used by other forms as well; so the user does have access to pages that are tied to this particular security category. There must be something else missing within the page which pulls up this error.

Does the form_id pertain to the id of the Pagebuilder page or the ghost form? Should campaign_id be passed in the form as well (it doesn't state this in the documentation)? I followed the documentation to see if anthing else would be required, but all is within the form. Anything else I may be missing?

Tagged:

Comments

  • By "ghost form" I guess you mean the donation form built in the Convio Online Giving area (not Donation Classic). This is what form_id refers to. You do not need to provide campaign_id because the form belongs to a single campaign so it is inferred.

  • JeffMills :

    By "ghost form" I guess you mean the donation form built in the Convio Online Giving area (not Donation Classic). This is what form_id refers to. You do not need to provide campaign_id because the form belongs to a single campaign so it is inferred.

    Hey Jeff,

    I tried using the id of the form as the id of the donation form. Now, I receive an 'Unable to process request' error with an error code of 1.

    Still trying to figure what it is that I'm missing in order to post without any errors. For the 'method' general parameters, the notes say that this is required and to specify which method to perform. To invoke this method use the value "donate." Where in the code does this go, as a hidden field? If so, the donation form isn't even recognized.

    Any ideas or suggestions?

    Thanks!

  • Awakash Bodiwala:

    Hey Jeff,

    I tried using the id of the form as the id of the donation form. Now, I receive an 'Unable to process request' error with an error code of 1.

    Still trying to figure what it is that I'm missing in order to post without any errors. For the 'method' general parameters, the notes say that this is required and to specify which method to perform. To invoke this method use the value "donate." Where in the code does this go, as a hidden field? If so, the donation form isn't even recognized.

    Any ideas or suggestions?

    Thanks!

    Yes, put the method in a hidden field. Here's a snippet from one of my test forms to show how I include the required fields other than the users' input. You would have to replace the "****" and "####" values with your own:

    <form method="post" action="">

    <input type="hidden" name="v" value="1.0"/>

    <input type="hidden" name="api_key" value="****"/>

    <input type="hidden" name="method" value="donate"/>

    <input type="hidden" name="form_id" value="####"/>

    <input type="hidden" name="level_id" value="####"/>

    .....

    <!-- User input fields. -->

    </form>

Categories