Announcement

Collapse
No announcement yet.

Setting up a form with FaaS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting up a form with FaaS

    Sorry to post these, but I'm not seeing answers to them anywhere in relation to developers supports, etc.

    1. Does the domain of the form have to match the domain specified when setting up the checkout page in order for the page to work?

    2. Does a maximum length variable need specifying for each input?

    3. Are errors generated in order of where they appear on the form or do some errors (such as WID errors, etc.) take precedence over others?

    4. Should I copy a demo form or will inserting the correct fieldnames into any existing form work ok?

    I'm trying to troubleshoot a form currently and need to know if I'm missing something really basic.

    Thanks,

  • #2
    no problem. This forum was set up for these types of questions. Always post your questions here:

    Your questions & answers are as follows:

    1. Does the domain of the form have to match the domain specified when setting up the checkout page in order for the page to work?

    Reply: Yes & No. If you set up the domain restriction then the answer is YES- the domain posting to us has to match the domain you list in the Allowed URL's area. To add restrictions:

    - Login to the admin area
    - Click on "Account Info"
    - Click on API Information
    - Enter the URL's authorized to post to the URL in the Authorized URL area.

    If you don't restrict posting then any URL is open to post and the domain should not match.

    2. Does a maximum length variable need specifying for each input?

    Reply: the field length and restrictions are all posted in the manual. https://developers.clickandpledge.com - click on the FaaS and see the fields and lengths.

    3. Are errors generated in order of where they appear on the form or do some errors (such as WID errors, etc.) take precedence over others?

    Reply: Errors are posted back to you one at a time. The moment the FaaS processor encounters an error it will post back the error.

    4. Should I copy a demo form or will inserting the correct fieldnames into any existing form work ok?

    Reply: You can create any form you want. You just have to make sure you follow our standards as posted in the manual.

    If you post your URL we can review the code and let you know what may be wrong.
    Regards,
    Click & Pledge Support Department

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

    Comment


    • #3
      Thanks for that.

      Here's a version of the page:

      Comment


      • #4
        Hi;

        I strongly suggest you view the source for this: https://www.clickandpledge.com/devel...s/example/001/

        There is a lot in your form that needs to be fixed.

        1: Country / State does not follow our code designation. You have to pass to us the state code. We have those as include files in the developer's site.
        2: The API does not use the card type as a variable. We determine the card type from the card number, ex. 4xxx is Visa, 5xxx is MasterCard, 3xxx is AMEX, 6xxx is Discover, etc.
        3: input name="UnitDedutiblePercentage" type="hidden" id="UnitDedutiblePercentage" value="100" - remember your site is a political site (based on what I see) and donations are not tax deductible so this value needs to be 0. If your account is set to "Not Tax Deductible" this value will not make a difference as it will be ignored.

        Please fix the above and let me know so we review it again.
        Regards,
        Click & Pledge Support Department

        Join us @ the educational webinars: https://clickandpledge.com/webinars/
        Live Support- read more: https://support.clickandpledge.com/s/article/general-information-live-support/

        Comment

        Working...
        X