cURL, SurePay, and irritation
Posted: Fri Mar 07, 2003 10:33 am
I do not have PHP's cURL functions installed, so I am doing a command-line use of cURL. Everything works fine, but I never get a proper submission.
my command (all the parameters are legal and correct)
my request xml document:
I send it off correctly and get the following response:
As far as I can tell, I have the <pp.request merchant> tag in my request document. Any help would be greatly appreciated
my command (all the parameters are legal and correct)
Code: Select all
curl --url https://xml.test.surepay.com --sslv3 --show-error --verbose --form xml= < /path/to/the/xml/document.xmlCode: Select all
<!DOCTYPE pp.request PUBLIC "-//IMALL//DTD PUREPAYMENTS 1.0//EN" "http://www.purepayments.com/dtd/purepayments.dtd">
<pp.request merchant="1001" password="password">
<pp.auth ordernumber="11111" shippingcost="1.00USD" taxamount="0.00USD" verbalauthdate="20030307111516000" >
<pp.creditcard number="4012000033330026" expiration="12/05" cvv2="0" cvv2status="0">
<pp.address type="billing" fullname="Daven Williams" address1="1872 Pratt Dr" city="Blacksburg" state="VA" zip="24060" country="US" eveningphone="5409533343" email="daven@exegetics.com" /></pp.creditcard>
<pp.address type="shipping" fullname="Daven Williams" address1="1872 Pratt Dr" city="Blacksburg" state="VA" zip="24060" country="US" eveningphone="5409533343" email="daven@exegetics.com" />
<pp.lineitem sku="223aa" description="MyItem" quantity="2" taxrate="0" unitprice="5.00USD"></pp.lineitem></pp.auth></pp.request>Code: Select all
<!DOCTYPE pp.response PUBLIC "-//IMALL//DTD PUREPAYMENTS 1.0//EN" "http://www.purepayments.com/dtd/purepayments.dtd">
<pp.response>
XML syntax error: Missing pp.request merchant
</pp.response>