Announcement

Collapse
No announcement yet.

What is the correct way to write the processing string?

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

  • What is the correct way to write the processing string?

    What is the correct way to write the processing string?

    We need help understanding/correcting the transaction processing lines of code that we put in our form.

    In the example the following was presented:

    <input type="hidden" name="OnSuccessUrl" id="OnSuccessUrl" value="https://www.clickandpledge.com/devel.../authorize.asp" />
    <input type="hidden" name="OnDeclineUrl" id="OnDeclineUrl" value="https://www.clickandpledge.com/devel...se/Decline.asp" />
    <input type="hidden" name="OnErrorUrl" id="OnErrorUrl" value="https://www.clickandpledge.com/devel...onse/Error.asp" />


    Do we need to create pages via our website that are of the following?
    https://allcharitiescount.com/authorize.html
    https://allcharitiescount.com/decline.html
    https://allcharitiescount.com/error.html
    or
    https://allcharitiescount.com/authorize.asp
    https://allcharitiescount.com/decline.asp
    https://allcharitiescount.com/error.asp

    Which one is correct?

    We know where to place the Account Guid Value and the AccountID, however we are not sure what we are suppose to do with the WID and the URL’s. Are those the correct URL’s? do we need to create pages on our website to reflect the urls?


    <td align="right"><input id="OnSuccessUrl" name="OnSuccessUrl" type="hidden" value="https://www.allcharitiescount.com/authorize.asp" /> <input id="OnDeclineUrl" name="OnDeclineUrl" type="hidden" value="https://www.allcharitiescount.com/Decline.asp" /> <input id="OnErrorUrl" name="OnErrorUrl" type="hidden" value="https://www.allcharitiescount.com/Error.asp" /> <input id="AccountGuid" name="AccountGuid" type="hidden" value="222xxxxxxxxxxxxxxxxxxxxxxxxxx" /> <input id="AccountID" name="AccountID" type="hidden" value="2xxxx" /> <input id="WID" name="WID" type="hidden" value=" WID " /> <input id="RefID" name="RefID" type="hidden" value="7xxxx" /> <input id="Tracker" name="Tracker" type="hidden" value="" /> <input id="SendReceipt" name="SendReceipt" type="hidden" value="true" /> <input id="OrderMode" name="OrderMode" type="hidden" value="Production" /> <input id="TransactionType" name="TransactionType" type="hidden" value="Payment" /> <input id="Subm Donation" name="Subm Donation" type="submit" value="Submit Donation" />

  • #2
    Good day!

    Once a transaction posts the API the service will post back the response either as GET or POST (based on your request) to the pages as identified by OnSuccessURL, OnDeclineURL, or OnErrorURL.

    Those pages should reside on your site so we can post back to them. If you use the GET method we will add the result to the URL and if you use the POST method then we will post all that you post to us back to you without the full credit card number. See: http://manual.clickandpledge.com/For....html#Postback

    As for the difference between the links you posted I am not sure I understand the question. The pages in our example have .asp extension since they are asp pages but you can use HTML or aspx or whatever extension you have since all we do is post back to it. It is really a matter of the programming language you use. If your pages are in php then your page will be whatever.php

    All we do is post the result to the page you tell us to post it to.

    Hope that answers your question.
    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
      Hi,

      I think we understand the URL logic (i.e. we can use the .php or .html depending on our website). The only thing I think we need to confirm is whether the following line is filled in correctly, meaning is the input id, name, value etc... correct?

      <input id="WID" name="WID" type="hidden" value=" WID " /> <input id="RefID" name="RefID" type="hidden" value="7xxxx" />

      Comment


      • #4
        Good day!

        WID stands for Window ID. For example: https://co.clickandpledge.com/sp/d1/...aspx?wid=55908

        The WID = 55908

        In the article I referenced before this is explained - http://forums.clickandpledge.com/con...-checkout-page

        In the Portal define a checkout page or use an existing one then use its WID for this as a reference. The advantage of using a WID as a reference is some of the customization may be done at the Checkout page without needing to change your code. For example: Campaign, Receipt header information, fraud enable / disable.

        If you use Salesforce you may change the campaign in the checkout page and not send it through the form. Sending the information through the form takes priority but if you do this for a client you may not want them to have you change the form and the code every time they change the campaign. A campaign may be set up through the portal and then used with the checkout page whose WID is being used.

        The RefID is a different variable that you may pass. That value is not of concern to the API but it a value it will post back to you in the post back process. Developers use this RefID to pass values that may correspond to their database entry. For example you may save the information in your local database and then post it to us for processing. Using the RefID you may pass a strange corresponding to your reference number and when the post back is sent to the OnSuccessURL page you can read the URL and update the reference number or database entry with the authorization or decline.

        RefID is an open text field and you may pass anything you want.
        WID is the checkout page ID and it HAS TO EXIST as a checkout page.

        Hope that answers your question.
        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