Integrating escrow web services on a PHP site

I want to integrate escrow.com services on my PHP site.

How do you get started with this goal, and which APIs will be the main features? Do you have any specific PHP or gotchas advice? Would you recommend another service provider?

+5
source share
3 answers

This is the first time I hear about escrow, but a quick crawl of the site gives me:

this contact form to get more information:

https://escrow.com/contact/sales.asp

Frequently Asked Questions: https://www.escrow.com/support/faq/index.asp?sid=8
+3
source

API . , , , , , cURL.

" escrow" , XML, , .

XML curl, :

        // Initialise your cUrl object
    $ch = curl_init('https://xml.Escrow.com/Invoke/Partners/ProcessrequestXML.asp');

    //set your cURL options
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, "\$xmldata=".urlencode($xml));

    //Start your cURL Transaction
    ob_start();

    //execute your cURL object with your parameters
    $result = curl_exec($ch);

    //set the returned info to a variable
    $info = curl_getinfo($ch);

    // close the transaction
    curl_close ($ch);

    //get the contents of the transaction
    $data = ob_get_contents();
    ob_end_clean();

    //optional; Redirect to a specific place
    header("Location:".$url);

, , - , .

- API , , .

+4

www.Transpact.com , . (FSA HMRC).

SOAP API .

0

All Articles