Announcement

Collapse
No announcement yet.

How to configure HTML pages (EVENT) to salesforce.

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

  • #16
    Good day Minkesh,

    Replies to your questions:

    1) I have created table using javascript according to number that you enter into textbox. How to setup custom question in loop using javascript ? have three column. i.e. "First Name" ,"Last Name", "Comment"

    REPLY: This is custom programming and programming Javascript which is not something we can do but perhaps others can help by providing examples of how you can program JavaScript - again this is a program that you wish to do and this forum is not best suited for this. Perhaps posting this in a Javascript programming forum may be better.

    2) Does your API supports this ?

    REPLY: This is not an API issue but a programming problem.

    3) What are the things that I need to pass in the URL ? is this the one ?
    • AccountID
    • AccountGUID
    • WID

    REPLY: Please refer to the following KB articles:

    The WID is simply the window ID for a checkout page created in the administrative Portal. The following shows how a checkout page appears in the portal:

    Click image for larger version

Name:	WID.jpg
Views:	1
Size:	96.9 KB
ID:	15138


    4) If yes how will get it ? what should be the post URL ?

    REPLY: The WID is shown above. The API information is also in the links I sent you as part of the earlier question. The following shows where you can get it also:
    Click image for larger version

Name:	API_Info.jpg
Views:	1
Size:	115.3 KB
ID:	15139
    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


    • #17
      Here What I did :-
      1) I have written Javascript accordingly. Thanks.
      2) Resolved.
      3) I have already seen your pages. I saw that there is page action url. i.e. "https://faas.cloud.clickandpledge.com". As I understood in my case URL should be "https://faas.cloud.clickandpledge.com/AccountGUID/Accountid/WID/Tracker".
      If I use first URL than where will i can see my saved data ?
      Is the second URL is correct Or am I missing something ?

      4) I got AccountGUID ,Accountid and WID but I have one question is that if I have not used checkout page than I will not be able to get WID. I am using my custom page so what should i pass instead WID ?

      Thanks,
      Minkesh

      Comment


      • #18
        Good day Minkesh,

        Glad to see 1 & 2 have been resolved.

        Regarding #3:

        https://faas.cloud.clickandpledge.com is the web service that you post the form. In no where in our manual we have given any instructions on adding the account, etc. to the end of the URL. The URL has no additional parameters and needs to be post action of your form.

        As stated before please review an example and see how it is done. I will take you through this step-by-step and hopefully you will see- it really is not that complicated.

        Please see the source code for this example: https://www.clickandpledge.com/Platf.../example/Base/ [Download the example and look at my explanation based on the line numbers in the source code]

        The following line posts the form to the API for processing.

        Line 1: <form id="Donation" method="post" action="https://faas.cloud.clickandpledge.com">

        I am hoping you see the rest of the lines prior to line 82 - they are the item information and billing address. This form is the minimum information required for processing.

        Lines 82 - 84 provide the URL's that the API should back to:
        <input type="hidden" name="OnSuccessUrl" id="OnSuccessUrl" value="https://www.clickandpledge.com/developers/faas/example/response/authorize.asp" />
        <input type="hidden" name="OnDeclineUrl" id="OnDeclineUrl" value="https://www.clickandpledge.com/developers/faas/example/response/Decline.asp" />
        <input type="hidden" name="OnErrorUrl" id="OnErrorUrl" value="https://www.clickandpledge.com/developers/faas/example/response/Error.asp" />

        Once a transaction succeeds (authorizes) it will return to the OnSuccessUrl and if it declines it posts back to OnDeclineUrl and for error to the OnErrorUrl

        Lines 86 - 88 are the account information that will receive the money. Also the account will be used to post to Salesforce if the account is connected.
        <input type="hidden" name="AccountGuid" id="AccountGuid" value="ddd31189-9a80-41d9-99e7-fdbb4350893c" />
        <input type="hidden" name="AccountID" id="AccountID" value="14521" />
        <input type="hidden" name="WID" id="WID" value="39588" />

        AccountGUID, AccountID, and WID are used per account information from the Portal.

        It is explained in the following KB article: https://forums.clickandpledge.com/co...-checkout-page

        A checkout page MAY BE (NOT required but may be) created to help with customizing the receipts. As I am sure you agree there is so much information that can be posted through a post. To make life easier for our clients we have integrated features of a checkout page that may be set up in the portal with a form hosted on your site. So you can add the organization information, receipt information, etc. in a checkout page and once the form posts to the API the information will be taken from the referenced WID (checkout page).

        This is detailed in the link I sent you earlier. Please read the posts carefully and you will see how to do it. There is step-by-step instructions. Please don't make any assumptions and skip instructions that show how to post. Our examples show you everything - please please open one of the examples and see the code.

        Let us know if we can be of any further help.
        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


        • #19
          Hello sir,

          I am using following demo code as taken demo from the http://manual.clickandpledge.com/Form-as-a-Service.html here i had downloaded FaaS_All_Examples.zip file and created following demo but it is now working and redirecting me the url which i passed.May i know what is wrong because it is working on your demo link https://www.clickandpledge.com/Platf.../example/Base/ but not working in my local code as below

          <form id="Donation" method="post" action="https://faas.cloud.clickandpledge.com">
          <table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tbody><tr>
          <td><strong>Thank you for your support.</strong></td>
          </tr>
          <tr>
          <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tbody><tr>
          <td>Donation</td>
          <td> $
          <input name="UnitPrice1" type="text" id="UnitPrice1" value="25" size="10">
          <input name="ItemID1" type="hidden" id="ItemID1" value="1">
          <input name="ItemName1" type="hidden" id="ItemName1" value="Donation">
          <input name="Quantity1" type="hidden" id="Quantity1" value="1">
          <input name="UnitDeductible1" type="hidden" id="UnitDeductible1" value="100%"></td>
          </tr>
          </tbody></table></td>
          </tr>
          <tr>
          <td><strong>Personal Information</strong></td>
          </tr>
          <tr>
          <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tbody><tr>
          <td>First name:</td>
          <td><input name="BillingFirstName" type="text" id="BillingFirstName" value="John" size="30"></td>
          </tr>
          <tr>
          <td>Last name:</td>
          <td><input name="BillingLastName" type="text" id="BillingLastName" value="Smith" size="30"></td>
          </tr>
          </tbody></table></td>
          </tr>
          <tr>
          <td><strong>Payment Information</strong></td>
          </tr>
          <tr>
          <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tbody><tr>
          <td>Credit card number:</td>
          <td><input name="CardNumber" type="text" id="CardNumber" value="4111111111111111" size="17" maxlength="17"></td>
          </tr>
          <tr>
          <td>CV2: </td>
          <td><input name="Cvv2" type="text" id="Cvv2" value="123" size="6"></td>
          </tr>
          <tr>
          <td>Expiration Date:</td>
          <td><select name="ExpirationMonth" id="ExpirationMonth">
          <option value="01">January</option>
          <option value="02">February</option>
          <option value="03">March</option>
          <option value="04">April</option>
          <option value="05">May</option>
          <option value="06">June</option>
          <option value="07">July</option>
          <option value="08">August</option>
          <option value="09">September</option>
          <option value="10">October</option>
          <option value="11">November</option>
          <option value="12">December</option>
          </select>
          <select name="ExpirationYear" id="ExpirationYear">
          <option value="11">2011</option>
          <option value="12">2012</option>
          <option value="13">2013</option>
          <option value="14">2014</option>
          <option value="15">2015</option>
          <option value="16">2016</option>
          <option value="17">2017</option>
          <option value="18">2018</option>
          <option value="19">2019</option>
          <option value="20" selected="selected">2020</option>
          </select>
          </td>
          </tr>
          </tbody></table></td>
          </tr>
          <tr>
          <td align="right">

          <input type="hidden" name="OnSuccessUrl" id="OnSuccessUrl" value="https://www.clickandpledge.com/Platforms/Donation-Payment/API/FaaS/Example/Response/authorize.asp">
          <input type="hidden" name="OnDeclineUrl" id="OnDeclineUrl" value="https://www.clickandpledge.com/Platforms/Donation-Payment/API/FaaS/Example/Response/Decline.asp">
          <input type="hidden" name="OnErrorUrl" id="OnErrorUrl" value="https://www.clickandpledge.com/Platforms/Donation-Payment/API/FaaS/Example/Response/Error.asp">


          <input type="hidden" name="AccountGuid" id="AccountGuid" value="ddd31189-9a80-41d9-99e7-fdbb4350893c">
          <input type="hidden" name="AccountID" id="AccountID" value="14521">
          <input type="hidden" name="WID" id="WID" value="39588">


          <input type="hidden" name="RefID" id="RefID" value="Example-Base">
          <input type="hidden" name="Tracker" id="Tracker" value="FaaS-Example-Base">

          <input type="hidden" name="SendReceipt" id="SendReceipt" value="true">
          <input type="hidden" name="OrderMode" id="OrderMode" value="Production">
          <input type="hidden" name="TransactionType" id="TransactionType" value="Payment">


          <input name="Subm Donation" type="submit" id="Subm Donation" value="Submit Donation">
          </td>
          </tr>
          </tbody></table>
          </form>

          Comment


          • #20
            Minkesh,

            There are 2 modes of operation:

            <input type="hidden" name="OrderMode" id="OrderMode" value="Production">

            &

            <input type="hidden" name="OrderMode" id="OrderMode" value="Test">

            In the example you pasted in your post the OrderMode is in production. In Production mode you have to post from a secure page (https://) - meaning the page that posts to the API has to be secure. In Production mode only the real credit cards work.

            when you use OrderMode in Test mode then only TEST credit cards work (4111111111111111) as explained in the KB articles. In TEST mode you may post to the processor using a regular non-secure site since you cannot post real credit cards.

            Per PCI requirements we do NOT respond to any post coming from an insecure site when the OrderMode is in Production mode. When insecure you will see a blank page at https://faas.cloud.clickandpledge.com

            The response you posted means you are posting the form from an insecure page.

            Please let me know if the above resolves your issue.
            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


            • #21
              Hello Sir,
              I had applied changes given by you but still i got blank page.I am trying to test again from my local machine.It is not working may i know what is wrong?

              Comment


              • #22
                Hello Sir,

                I had apply all the changes and I have tested it but I am not able to save it into my org.
                Even I tried to add my account GUID and accountId to your example but it is not taking any effect.

                Please reply me ASAP because I need to finish it today.

                One again I want to confirm that WID is not required. is it ?

                I can give you my source code but please tell me what is wrong with it ?

                Thanks,
                Minkesh

                Comment


                • #23
                  Minkesh,

                  If the OrderMode is in Production then the referring URL has to be secure. This statement means that your form needs to be on a secure page. Localhost is not a secure page. You cannot post a form to our processor if the site is not secure. I have repeatedly stated this.

                  If you wish to post while testing then set the order mode to Test.

                  WID is not required but it is better if you use it since it gives you more customization. The KB article I sent you explains what you should do in step-by-step.
                  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


                  • #24
                    Hello,

                    I have uploaded the page and i tried to run it but i got following error. i.e.

                    Each FaaS form requires an Error page where the system returns the error message, in case of an error.

                    The following has occurred while processing the transaction:

                    Error Response

                    err=the%20basket%20is%20empty&hashresponse=zgezowe zzwu1ztzingjkmzi1nwjmzwy5ntywmtg5mgfmzdg3oq==&refi d=registration




                    Page link :- http://aphroditeinfra.com/demo3/

                    Please let me know ASAP.

                    Thanks,
                    Minkesh

                    Comment


                    • #25
                      Hello,

                      I think I need to enter following value. correct ?

                      <input name="Quantity2" type="text" id="Quantity2" size="5" />
                      <input name="ItemID2" type="hidden" id="ItemID2" value="2" />
                      <input name="ItemName2" type="hidden" id="ItemName2" value="Senior Citizen" />
                      <input name="UnitPrice2" type="hidden" id="UnitPrice2" value="40" />
                      <input name="UnitDeductible2" type="hidden" id="UnitDeductible2" value="20" />

                      Thanks,
                      Minkesh

                      Comment


                      • #26
                        Minkesh,

                        Basket is empty means you are not passing any items to the basket. As is shown in the manual:

                        http://manual.clickandpledge.com/For...ct_Information

                        It is also illustrated in every example I sent you.

                        Each form has to have at least one item and that the first item should be numbered 1 and all products thereafter should be incremented by 1.

                        For multiple items you may want to see the following example:

                        https://www.clickandpledge.com/Platf...s/example/001/

                        All these were sent to you when this post started. Please review the examples and you will see how to do this.
                        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


                        • #27
                          Hello ,

                          I did the changes accoring to example but still it says that basket is null.

                          Here is my request array format.

                          Array
                          (
                          [UnitPrice1] => 25
                          [Other1] =>
                          [BillingEmail] => [email protected]
                          [BillingFirstName] => minkesh
                          [BillingLastName] => patel
                          [BillingCompanyName] => minkesh
                          [BillingAddress1] => ahmadabad
                          [BillingCity] => ahmadabad
                          [BillingStateProvince] => Alabama
                          [BillingPostalCode] => 35482586
                          [BillingCountryCode] => 004
                          [BillingPhone] => 145561231654156
                          [BillingFaxNumber] => 1261621
                          [info_radio] =>
                          [info_radio_1] =>
                          [input1] =>
                          [radio] =>
                          [CardNumber] => 4111111111111111
                          [Cvv2] => 123
                          [ExpirationMonth] => 01
                          [ExpirationYear] => 2020
                          [BillingTotal] => 50
                          [OnSuccessUrl] => https://www.clickandpledge.com/devel.../authorize.asp
                          [OnDeclineUrl] => https://www.clickandpledge.com/devel...se/Decline.asp
                          [OnErrorUrl] => https://www.clickandpledge.com/devel...onse/Error.asp
                          [AccountGuid] => a903dd92-8589-41d1-ac00-1d876dd28f14
                          [AccountID] => 23919
                          [WID] =>
                          [RefID] => registration
                          [Tracker] => FaaS-Example-003
                          [SendReceipt] => true
                          [OrderMode] => Test
                          [TransactionType] => Payment
                          )

                          Here is the URL that I am using to test.

                          http://kiransharma.in/ticket_page/index.html

                          Let me know if i missed anything.

                          Thanks,
                          MInkesh

                          Comment


                          • #28
                            Minkesh,

                            As stated before "Basket is Empty" means you are not passing any names or other information for the item.

                            The info you posted here also shows you have nothing for ItemName, UnitPrice, etc.

                            Are you reading the instructions? Have you checked the examples?

                            Every single example has the UnitPrice, ItemName, etc.

                            What you posted does not have any of those.

                            You may change your post URL to: https://Verify.FaaS.Cloud.ClickandPledge.com and see what you are posting to us which will clearly and without any doubt shows that you are not posting any information for the item to be charged.
                            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


                            • #29
                              Hello,

                              One question I have as I am still not able to make it happen.
                              I have passed Items as well but it is still stating "Basket is empty".

                              Here is my URL :- http://kiransharma.in/ticket_page/index.html
                              I have posted following parameter for Product. :-

                              <input id="UnitDeductible1" type="hidden" value="100%" name="UnitDeductible1"></input>
                              <input id="ItemID1" type="hidden" value="1" name="ItemID1"></input>
                              <input id="ItemName1" type="hidden" value="Cause 1" name="ItemName1"></input>
                              <input id="Quantity1" type="hidden" value="1" name="Quantity1"></input>
                              <input id="SKU1" type="hidden" value="ABC-1234" name="SKU1"></input>
                              <input id="Campaign1" type="hidden" value="Donation" name="Campaign1"></input>

                              I want to know that Is this correct ?
                              Campaign name should be the exiting one or it will create new ?
                              same for SKU,ItemId,ItemName.
                              Do I need to give what i have into salesforce ?
                              If so Please explain.

                              Thanks,
                              Minkesh

                              Comment


                              • #30
                                Minkesh,

                                Your code has a few major violations of our instructions & manual description:

                                <input name="UnitPrice1" type="radio" value="$250" id="price_1">

                                When you ad: value="$250" it does not follow any of the examples or manual instructions. The currency does not have a symbol and it should be: Value="250"

                                http://manual.clickandpledge.com/For...ct_Information

                                See the UnitPrice and sample value of 100. It should not be listed as $100 - it should be 100

                                Please review the examples and read the manual as this would have solved your issue.

                                Your other questions:

                                You asked: Campaign name should be the exiting one or it will create new ?
                                Reply: If campaign does not exist it will be created. If campaign name exists then the application will assign that application to the campaign.

                                You asked: same for SKU,ItemId,ItemName.
                                Reply: ItemId is not used anywhere but for posting order in the API. SKU is used by a lot of options in Salesforce for dynamic changing of opportunity names, etc. , ItemName will become the Opportunity name.

                                You asked: Do I need to give what i have into salesforce ?
                                Reply: No- all will be handled automatically.

                                I strongly suggest that you watch the Salesforce integration video and other instructional videos about the Salesforce: Here is one about the overall system: https://forums.clickandpledge.com/co...ation-Overview

                                All Salesforce videos are at: https://forums.clickandpledge.com/co...nor-management

                                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

                                Working...
                                X