Page 1 of 1

SurePay and sending XML

Posted: Mon Feb 10, 2003 9:31 am
by daven
Has anyone used SurePay and successfully made it work in PHP? The SDKs are for PERL or ASP, not PHP.

I can easily create the proper XML document, but my problem lies in sending the bloody thing. I feel like an idiot, but I cannot figure out how to send the document. ASP uses "XMLhttpObject.send" and PERL uses "NET::SSLeay::post_https". I know what they do, but I do not know the equivalent PHP function. Any ideas?

EDIT::
Just was tossed a reference by one of my local PHP friends. It seems that I need to use the Curl functions to properly send stuff to SurePay.

Excuse me while I go beg/beat my Server Manager to get the library installed.

Posted: Mon Feb 10, 2003 11:41 am
by Stoker
I created this gpl'd surepay-class for the classic surepay interface, but I havent updated or added anything for it the past 6 months as surepay have been bought up by verisign, and teherore I suspect assume that surepays legacy gateway will be shut down in a couple of years..

That class uses PHP/Curl/SSL, but, it is possible to do it without curl-support in PHP, if curl is SSL enabled and installed on the system you can pass it thru a shell with the curl command line tool.. or even pass it to a perlscript that does just the communications part..