Announcement

Collapse
No announcement yet.

Parse error messages from $_GET

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

  • Parse error messages from $_GET

    I am trying to parse the error messages from your reply onto the error landing page so that I can get notifications when something goes wrong.

    When dealing with declined cards I can get the value from $_GET["response"] however I don't see how to parse the error message for other problems.

    for example my GET variable string looks like:

    /?on=Xml%20Error&The%20%27urn:APISchema.xsd:Expirat ionDate%27%20element%20is%20invalid%20-%20The%20value%20%271/22%27%20is%20invalid%20according%20to%20its%20data type%20%27String%27%20-%20The%20Pattern%20constraint%20failed.&hashrespon se=ZGEzOWEzZWU1ZTZiNGJkMzI1NWJmZWY5NTYwMTg5MGFmZDg 3OQ==&RefID=Dizzie

    and print_R parses it out to

    Array ( [on] => Xml Error [The_'urn:APISchema_xsd:ExpirationDate'_element_is_ invalid_-_The_value_'1/22'_is_invalid_according_to_its_datatype_'String'_-_The_Pattern_constraint_failed_] => [hashresponse] => ZGEzOWEzZWU1ZTZiNGJkMzI1NWJmZWY5NTYwMTg5MGFmZDg3OQ == [RefID] => Dizzie )

    what is the syntax to access theXML error message?


    TIA appreciate your help!


  • #2
    Good day @bicyclista

    Would you please share the link URL of your donation page?

    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


    • #3
      hi thanks, yes my form is here:

      https://cancercommons.org/giving

      (I hope you can not make it generate an error however ;-0 )

      Comment


      • #4
        Good day @bicyclista

        We performed a couple of test transactions on your form and it processed successfully. Order number: 38547-1908300723345471111 & 38547-1908300738074291111

        It looks like you was entered invalid expiration date on that transaction.

        Please test it and let us know if we can be of any further assistance.
        Last edited by CnP.Support.AM; 08-30-2019, 06:40 AM.
        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
          hi thank you for looking at this! I appreciate your help very much.

          I'm afraid you've slightly missed the point of my query, I'm sorry if the way I phrased it was confusing.

          I am asking specifically about the error reply string you send to my error page. I want to be able to parse the data you post to the error page so I can tell the user receiving the error message what the error was.

          I think the error reply string is missing a value and causing the reply values to be used as the reply indexes.

          can you ask an engineer to look at the reply string for error messages or my first message above? thank you

          Comment

          Working...
          X