PHP code example of craftt / xorder-sdk
1. Go to this page and download the library: Download craftt/xorder-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
craftt / xorder-sdk example snippets
$xorder = new XOrder\XOrder('xorder.xml', true);
$credentials = new XOrder\Credentials('username', 'password', 'account');
$client = new XOrder\Client;
$client->login($credentials);
$response = $client->send($xorder);
$xorder = new XOrder\XOrder('xorder.xml', true);
$validator = new XOrder\XOrderValidator($xorder);
$isValid = $validator->validate();