Skip to content

Instantly share code, notes, and snippets.

@rubenCodeforges
Created February 5, 2016 17:09
Show Gist options
  • Save rubenCodeforges/70749ba1218f3dea8c8c to your computer and use it in GitHub Desktop.
Save rubenCodeforges/70749ba1218f3dea8c8c to your computer and use it in GitHub Desktop.
$wsdl = new \wsdl("https://test.achprocessing.com/api/ServiceTransaction.svc?wsdl");
$apikey = "68ad3155-5900-4623-8be7-01b34caf86a2";
$password = "SpyEscape2016!";
$username = "APISpyEscape";
$amount = 200;
$params = array ( 'achAuthentication' => array(
'ApiKey' => $apikey,
'Password' => $password,
'UserName' => $username,
));
$wsdl = 'https://test.achprocessing.com/api/ServiceTransaction.svc?wsdl';
$options = array(
'uri'=>'http://schemas.xmlsoap.org/soap/envelope/',
'style'=>SOAP_RPC,
'use'=>SOAP_ENCODED,
'soap_version'=>SOAP_1_2,
'cache_wsdl'=>WSDL_CACHE_NONE,
'connection_timeout'=>15,
'trace'=>true,
'encoding'=>'UTF-8',
'exceptions'=>true,
);
$soap = new \SoapClient($wsdl, $options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment