Announcement

Collapse
No announcement yet.

FaaS submission via curl and error handling

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

  • FaaS submission via curl and error handling

    In a nutshell, I need to have the form process donations to both C&P FaaS and a CRM simultaneously. The easiest way to accomplish this is by submitting the information to both third parties through CURL and XML Submit. My only concern is the ability to report errors or card declines through an error handling function and not actually directing the users to separate HTML files. This seems silly in the first place, so does anyone have any examples or direction on curl submissions/error handling?

  • #2
    Good day!

    What CRM are you working with?

    Have you considered returning to the same form with an error allowing the end user to enter the info again and trying again?

    Unfortunately, at Click & Pledge, we don't have any CURL experience so won't be able to be of much 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


    • #3
      BackOffice. Basically the form is processing on our end and submitting to both BackOffice and C&P. I can't post the form directly to C&P because I'd have to store sensitive information locally in order to carry it over to the error/decline/success pages.

      What would you recommend as an alternative to HTTP_Request or curl to post the form? I'm limited to PHP here

      Comment


      • #4
        Good day!

        I am just curious about your approach.

        You appear to be a programmer so why are you not using the PaaS platform since it is a complete service and it won't redirect you to anywhere. FaaS platform is a front end form processor for PaaS.

        http://manual.clickandpledge.com/Pay...a-Service.html
        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
          Ah great, thank you! From what I'm reading it appears I can submit to PaaS using XML, which would be ideal. I'm already using XML submission to post the donations to BackOffice, so translating it over to C&P shouldn't be terribly difficult.

          Thanks for your help on this.

          Comment


          • #6
            Originally posted by Support.Department View Post
            Good day!

            I am just curious about your approach.

            You appear to be a programmer so why are you not using the PaaS platform since it is a complete service and it won't redirect you to anywhere. FaaS platform is a front end form processor for PaaS.

            http://manual.clickandpledge.com/Pay...a-Service.html
            Would you happen to have any PHP examples of a PaaS form? It's still not giving me a response when I try to send the XML to the payment service.

            Thanks!

            Comment


            • #7
              Have you seen this example?

              http://manual.clickandpledge.com/Sample-Programs.html

              There is a sample PHP program there using the XML post.
              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