Announcement

Collapse
No announcement yet.

Having trouble finding the correct URL to post to

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

  • Having trouble finding the correct URL to post to

    Hello,

    I'm in the midst of a proof of principal for our web site. We already have a donor form for another payment processor and I am swapping in C+P. I have formed up the XML from the form and when I copy the XML to the validator it is working correctly and I find the test transaction in my transaction list.

    However any time I try to post the XML to https://paas.cloud.clickandpledge.co...entService.svc I get a 400 Bad Request response.

    I have tried to post from the backend of our web site with cURL and also from the Postman tool without success. I copied one of the requests below.

    Thanks,
    Matthew

    POST /paymentservice.svc/ HTTP/1.1
    Host: paas.cloud.clickandpledge.com
    Content-Type: text/xml; charset=utf-8
    Cache-Control: no-cache
    Postman-Token: 609b71f4-c644-7320-8321-4accecbb1c02

    <?xml version="1.0"?>
    <CnPAPI xmlns="urn:APISchema.xsd"><Version>12</Version><Engine><Request><Operation><OperationType >Transaction</OperationType><IPAddress>192.168.0.11</IPAddress></Operation><Authentication><AccountGuid>a1b9d134-d858-4f4b-bac1-xxxxxxxxxxxx</AccountGuid><AccountID>xxxxx</AccountID></Authentication><Order><OrderMode>Test</OrderMode><CardHolder><BillingInformation><Billing FirstName>TEST</BillingFirstName><BillingMI>I</BillingMI><BillingLastName>NG</BillingLastName><BillingEmail>[email protected]</BillingEmail><BillingPhone>(415) 111 - 2222</BillingPhone></BillingInformation><BillingAddress><BillingAddress 1>1234 Main Street</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>03/23</ExpirationDate></CreditCard></PaymentMethod></CardHolder><OrderItemList><OrderItem><ItemID>1</ItemID><ItemName>Donation</ItemName><Quantity>1</Quantity><UnitPrice>5000</UnitPrice><UnitDeductible>5000</UnitDeductible></OrderItem></OrderItemList><Receipt><SendReceipt>false</SendReceipt></Receipt><Transaction><TransactionType>Authorize</TransactionType><CurrentTotals><TotalDeductible>50 00</TotalDeductible><Total>5000</Total></CurrentTotals></Transaction></Order></Request></Engine></CnPAPI>

  • #2
    Good day @[email protected]

    We have reviewed your XML and found NO issues. Please test XML here: https://verify.paas.cloud.clickandpledge.com/

    Please note that the <TransactionType> should be "Payment" instead of "Authorize".

    Please test it and let us know the outcome.
    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
      Thanks for replying.

      From my first post "when I copy the XML to the validator it is working correctly and I find the test transaction in my transaction list." So I have sent to https://verify.... but when I send the request to https://paas.... I get a "400 Bad Request".

      I changed to Transaction Type to Payment and tried again from Postman.

      Here is the request:

      POST /paymentservice.svc/ HTTP/1.1
      Host: paas.cloud.clickandpledge.com
      Content-Type: text/xml; charset=utf-8
      Cache-Control: no-cache
      Postman-Token: 502b7399-3f93-8658-f45a-ccfa396a155c

      <?xml version="1.0"?>
      <CnPAPI xmlns="urn:APISchema.xsd"><Version>12</Version><Engine><Request><Operation><OperationType >Transaction</OperationType><IPAddress>192.168.0.11</IPAddress><UrlReferrer>https://openspacetrust.org/donate</UrlReferrer></Operation><Authentication><AccountGuid>a1b9d134-d858-4f4b-bac1-xxxxxxxxxxxxx</AccountGuid><AccountID>xxxxx</AccountID></Authentication><Order><OrderMode>Test</OrderMode><CardHolder><BillingInformation><Billing FirstName>TEST</BillingFirstName><BillingMI>I</BillingMI><BillingLastName>NG</BillingLastName><BillingEmail>[email protected]</BillingEmail><BillingPhone>(415) 111 - 2222</BillingPhone></BillingInformation><BillingAddress><BillingAddress 1>1234 Main Street</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>03/23</ExpirationDate></CreditCard></PaymentMethod></CardHolder><OrderItemList><OrderItem><ItemID>1</ItemID><ItemName>Donation</ItemName><Quantity>1</Quantity><UnitPrice>5000</UnitPrice><UnitDeductible>5000</UnitDeductible></OrderItem></OrderItemList><Receipt><SendReceipt>false</SendReceipt></Receipt><Transaction><TransactionType>Payment</TransactionType><CurrentTotals><TotalDeductible>50 00</TotalDeductible><Total>5000</Total></CurrentTotals></Transaction></Order></Request></Engine></CnPAPI>


      Here is the response:

      HTTP/1.1 400
      status: 400
      server: Microsoft-IIS/10.0
      x-powered-by: ASP.NET
      date: Wed, 14 Mar 2018 17:06:10 GMT
      content-length: 0

      *** Is the URL incorrect?
      *** Am I missing a header in the request?

      Matthew

      Comment


      • #4
        Good day [email protected]

        This is a SOAP service and you may test it use a tool that supports SOAP, e.g. https://www.soapui.org/

        You may also search Google on how to consume a SOAP service using your back end server or tools.

        Hope that helps.
        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