Announcement

Collapse
No announcement yet.

Server returning Invalid Recurring Parameters

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

  • Server returning Invalid Recurring Parameters

    Hello,

    I am adding a recurring donation feature to the web site I am working on.

    I am successfully getting one-time donations to process, but when I add the recurring section to the transaction I am getting an error 2059.

    The redacted XML is below.

    Thanks,
    Matthew

    -------------------------
    <CnPAPI xmlns="urn:APISchema.xsd"><Version>12</Version><Engine><Request><Operation><OperationType >Transaction</OperationType><IPAddress>192.168.0.11</IPAddress><UrlReferrer>dev.openspacetrust.org/donate/</UrlReferrer></Operation><Authentication><AccountGuid>00000000-0000-0000-0000-000000000000</AccountGuid><AccountID>00000</AccountID></Authentication><Order><OrderMode>Test</OrderMode><CardHolder><BillingInformation><Billing FirstName>TEST</BillingFirstName><BillingMI>I</BillingMI><BillingLastName>NG</BillingLastName><BillingEmail>[email protected]</BillingEmail><BillingPhone>(415) 247 - 9420</BillingPhone></BillingInformation><BillingAddress><BillingAddress 1>1224 Fairfax Avenue</BillingAddress1><BillingAddress2/><BillingAddress3/><BillingCity>San Francisco</BillingCity><BillingStateProvince>CA</BillingStateProvince><BillingPostalCode>94124</BillingPostalCode><BillingCountryCode>840</BillingCountryCode></BillingAddress><PaymentMethod><PaymentType>CreditC ard</PaymentType><CreditCard><NameOnCard>TEST I NG</NameOnCard><CardNumber>4111111111111111</CardNumber><Cvv2>123</Cvv2><ExpirationDate>02/25</ExpirationDate></CreditCard></PaymentMethod></CardHolder><OrderItemList><OrderItem><ItemID>1</ItemID><ItemName>Donation</ItemName><Quantity>1</Quantity><UnitPrice>1000</UnitPrice><UnitDeductible>1000</UnitDeductible></OrderItem></OrderItemList><Receipt><SendReceipt>false</SendReceipt></Receipt><Transaction><TransactionType>Authorize</TransactionType><Recurring><Periodicity>Month</Periodicity></Recurring><CurrentTotals><TotalDeductible>1000</TotalDeductible><Total>1000</Total></CurrentTotals></Transaction></Order></Request></Engine></CnPAPI>
    -------------------------

  • #2
    As a clarification the Sandbox returns exactly:

    Result = Wrong recurring parameters(2059)

    Server :API-101
    Version :PaaS.20180329.003.060.000

    Comment


    • #3
      Good day @[email protected]

      That error code represents "Invalid recurring parameters". We noticed that you are passing only <Recurring><Periodicity>Month</Periodicity></Recurring>. You will need to include how many installments and subscription/installment.

      Please refer to the manual: https://manual.clickandpledge.com/Tr...html#Recurring

      Please check and 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


      • #4
        HI CnP.Support.AM

        Thank you for the answer.

        Manual
        ----------
        I've reread the manual section, I've been spending a lot of time there, and I don't see any indication that any field but the periodicity are required All the other ones are marked <minOccurs="0">. This seems to be correct from a XML parsing standpoint because I am not getting a parsing error.

        It would be great if the manual (and the parser) indicated that more parameters are required, or if the error message was more explicit, or there is probably a better solution than I am thinking of.

        Installments
        ----------------
        What we are trying to do is allow for people to have automatic monthly donations. Is there a way to have an unbounded number of installments? I can set it to 999, which practically is forever, but that has a different meaning than "no end". And also does this create a problem for being able to stop the automatic payments later?

        Thanks,
        Matthew

        Comment


        • #5
          Good day @[email protected]

          NO, there will be NO problem with canceling the recurring. You may set it to 999 (indefinite) and can cancel it anytime.
          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