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>
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>
Comment