Skip to content

Instantly share code, notes, and snippets.

@leoallen85
Created April 27, 2010 09:57
Show Gist options
  • Save leoallen85/380566 to your computer and use it in GitHub Desktop.
Save leoallen85/380566 to your computer and use it in GitHub Desktop.
$url = 'https://testapi.envoyservices.com/MerchantAPI/MerchantAPI.asmx?wsdl';
// Set up the client
$soap = new SoapClient($url, array('trace' => TRUE));
$fields = array
(
'auth' => array
(
'username' => 'hjk',
'password' => 'kjh'
),
'requestReference' => 'jhfg'
);
try
{
// Call repeat card method
$response = $soap->__soapCall('payToBankAccountV2', array('df'));
}
catch(Exception $e)
{
// Ignore soap errors we just want to see the last request
}
header ("Content-Type:text/xml");
echo $soap->__getLastRequest();exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment