Announcement

Collapse
No announcement yet.

FaaS Receipts - product name

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

  • FaaS Receipts - product name

    As part of our system set up for a client, we've got a form being submitted to your FaaS url, and things are working well!

    The thing we'd like to include on the receipt, however, is the name of the item which a user will purchase on our system.

    What is the best way forward here? I've tried sending through an "ItemID" parameter, to no avail (the form is declined whenever the value isn't "test", it seems).

    Does a product need to be set up on the C&P side in order for its name to come through in the receipt?

    This doesn't make sense for us, as all of the product info is contained within our app.

  • #2
    Good day @duncan@formula-d.com

    You need to pass the value in the Item Name instead of Item ID. Please refer to the below example:

    <input type="hidden" name="ItemName1" id="ItemName1" value="Donation Name">

    Hope that helps. Let us know if we can be of any further assistance.
    Regards,
    Click & Pledge Support Department

    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

    Join us @ the educational webinars: https://clickandpledge.com/webinars/
    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

    Comment


    • #3
      I am now getting an error saying that 'the basket is empty'.

      Comment


      • #4
        Good day @duncan@formula-d.com

        Would you please share the form URL so that we can review it?

        Looking forward to hearing back from you.
        Regards,
        Click & Pledge Support Department

        On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

        Join us @ the educational webinars: https://clickandpledge.com/webinars/
        Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
        Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

        Comment


        • #5
          Click image for larger version

Name:	
Views:	1
Size:	1.9 KB
ID:	32218 Here is the (semi obfuscated) form.

          (forum uploader made the file tiny - see https://ibb.co/hEs0vk)
          Last edited by duncan@formula-d.com; 04-19-2017, 05:02 AM.

          Comment


          • #6
            Good day @duncan@formula-d.com

            Please remove the number "1" from the ItemName and test it.

            name="ItemName1" id="ItemName1" TO name="ItemName" id="ItemName"

            Click image for larger version

Name:	ItemName.jpg
Views:	1
Size:	54.7 KB
ID:	32221

            For future reference: Please note that this forum does not support the PNG format of the image and it shows only thumbnail. , you may upload the image in JPG format.

            Regards,
            Click & Pledge Support Department

            On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

            Join us @ the educational webinars: https://clickandpledge.com/webinars/
            Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
            Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

            Comment


            • #7
              Good day duncan@formula-d.com

              We highly recommend that you do the following during the development:

              Change the post to https://faas.cloud.clickandpledge.com to https://verify.faas.cloud.clickandpledge.com

              The VERIFY service will show you a page that reveals all form fields that is being posted to us.

              Basket EMPTY means no item is being posted with valid name and quantity. For example if item name is blank or quantity is 0

              Please change your post method and see what you are posting to us. I am sure you will see what is going on. If you still have problem, please leave the post method to verify and let us know so we test it for you.
              Regards,
              Click & Pledge Support Department

              On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

              Join us @ the educational webinars: https://clickandpledge.com/webinars/
              Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
              Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

              Comment


              • #8
                Understood - I seem to be getting there with the verification page. Everything seems OK in the basket, but I notice i'm not sending through the checkout page (WID). Is this necessary? I can't find the "account token" in my C&P profile page, so I don't know where i'd post that from instead (as the verifier says wither the token must be sent, or the WID must be included along with the other details).

                Comment


                • #9
                  Good day duncan@formula-d.com

                  WID is not mandatory. You may leave both blank.

                  WID is the reference ID of a form that may be created in Connect so the form on your site appears as if it has posted through that form. This then triggers the same receipt, etc.

                  You may leave those fields blank and your default values will be used.
                  Regards,
                  Click & Pledge Support Department

                  On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                  Join us @ the educational webinars: https://clickandpledge.com/webinars/
                  Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                  Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                  Comment


                  • #10
                    duncan@formula-d.com

                    Here is the problem you are having.

                    Let's simply see what the labels mean: http://manual.clickandpledge.com/For...ct_Information

                    All "names" of an item need to be named the same. For example:

                    <input name="UnitPrice1" type="text" id="UnitPrice1" value="5" size="10" />
                    <input name="UnitDeductible1" type="hidden" id="UnitDeductible1" value="100%" />
                    <input name="ItemID1" type="hidden" id="ItemID1" value="1" />
                    <input name="ItemName1" type="hidden" id="ItemName1" value="Cause 1" />
                    <input name="Quantity1" type="hidden" id="Quantity1" value="1" />
                    <input name="SKU1" type="hidden" id="SKU1" value="ABC-1234" />
                    <input name="Campaign1" type="hidden" id="Campaign1" value="Building Fund" />

                    As you see ItemName1, Quantity1, etc.

                    all these items have a suffix of 1.

                    In your case you have: (based on your image)

                    Click image for larger version

Name:	image_4199.jpg
Views:	1
Size:	54.6 KB
ID:	32226


                    UnitPrice, ItemID, UnitTaxDeductible..

                    BUT

                    your ItemName has a 1 in it.

                    Either set all family names with a suffix of 1 or remove 1 from the name.

                    The suffix is there for cases where you have multiple items so the first one will be set to 1, then 2, 3, ..

                    See the example in the manual for multiple products. Given you only have one product the suffix may be skipped or if you want to keep it then name all family members the same way as shown in my example above.

                    Hope that helps.
                    Regards,
                    Click & Pledge Support Department

                    On Salesforce? Help us by rating our app: Click & Pledge Donor Management on AppExchange

                    Join us @ the educational webinars: https://clickandpledge.com/webinars/
                    Live Support available Join between 3:00 - 3:30 p.m. ET Monday - Thursday: https://clickandpledge.com/webinars/
                    Are you on Salesforce? Join us at the Power of Us Hub: https://powerofus.force.com/0F980000000CjpC

                    Comment


                    • #11
                      Thanks - I got that to work eventually.

                      By the way, the verification page (verify.faas.clickandpledge etc.) lists WID as required if the account token is not entered.

                      Issue closed Now to convince the client that they should name all their products something shorter than 50 characters so it shows up on their receipts!

                      Comment

                      Working...
                      X