<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Very basic setup returning invalid merchant ID or password in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2003#M1773</link>
    <description>&lt;P&gt;I'm starting out by trying to get a successful connection to "&lt;A rel="nofollow" target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?
function MerchantAuthenticationBlock()
{
	global $g_loginname, $g_transactionkey;
	return
	"&amp;lt;merchantAuthentication&amp;gt;".
	"&amp;lt;name&amp;gt;" . $g_loginname . "&amp;lt;/name&amp;gt;".
	"&amp;lt;transactionKey&amp;gt;" . $g_transactionkey . "&amp;lt;/transactionKey&amp;gt;".
	"&amp;lt;/merchantAuthentication&amp;gt;";
}

function send_request_via_curl($host,$path,$content)
{
	$posturl = "&lt;A rel="nofollow" target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $posturl);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
	curl_setopt($ch, CURLOPT_HEADER, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	$response = curl_exec($ch);
	return $response;
}

function send_xml_request($content)
{
	global $g_apihost, $g_apipath;
	return send_request_via_curl($g_apihost,$g_apipath,$content);
}

$g_loginname = "5mZ4x3eAU";
$g_transactionkey = "9pSyRY9c46be57FQ";

$content =
"&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;" .
"&amp;lt;createCustomerProfileRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"&amp;gt;".
MerchantAuthenticationBlock().
"&amp;lt;profile&amp;gt;".
"&amp;lt;merchantCustomerId&amp;gt;12345&amp;lt;/merchantCustomerId&amp;gt;".
"&amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;".
"&amp;lt;email&amp;gt;test@email.com&amp;lt;/email&amp;gt;".
"&amp;lt;/profile&amp;gt;".
"&amp;lt;/createCustomerProfileRequest&amp;gt;";

echo "Raw request: " . htmlspecialchars($content) . "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";
$response = send_xml_request($content);

echo '&amp;lt;pre&amp;gt;'; var_dump($response); echo '&amp;lt;/pre&amp;gt;';
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Response:

string(434) "HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Tue, 16 Feb 2010 16:25:21 GMT
X-Powered-By: ASP.NET

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 16 Feb 2010 16:25:21 GMT
X-Powered-By: ASP.NET
Connection: close
Content-Type: text/html
Content-Length: 151

The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2010 16:29:23 GMT</pubDate>
    <dc:creator>dvelguru</dc:creator>
    <dc:date>2010-02-16T16:29:23Z</dc:date>
    <item>
      <title>Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2003#M1773</link>
      <description>&lt;P&gt;I'm starting out by trying to get a successful connection to "&lt;A rel="nofollow" target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?
function MerchantAuthenticationBlock()
{
	global $g_loginname, $g_transactionkey;
	return
	"&amp;lt;merchantAuthentication&amp;gt;".
	"&amp;lt;name&amp;gt;" . $g_loginname . "&amp;lt;/name&amp;gt;".
	"&amp;lt;transactionKey&amp;gt;" . $g_transactionkey . "&amp;lt;/transactionKey&amp;gt;".
	"&amp;lt;/merchantAuthentication&amp;gt;";
}

function send_request_via_curl($host,$path,$content)
{
	$posturl = "&lt;A rel="nofollow" target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $posturl);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml"));
	curl_setopt($ch, CURLOPT_HEADER, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
	$response = curl_exec($ch);
	return $response;
}

function send_xml_request($content)
{
	global $g_apihost, $g_apipath;
	return send_request_via_curl($g_apihost,$g_apipath,$content);
}

$g_loginname = "5mZ4x3eAU";
$g_transactionkey = "9pSyRY9c46be57FQ";

$content =
"&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;" .
"&amp;lt;createCustomerProfileRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"&amp;gt;".
MerchantAuthenticationBlock().
"&amp;lt;profile&amp;gt;".
"&amp;lt;merchantCustomerId&amp;gt;12345&amp;lt;/merchantCustomerId&amp;gt;".
"&amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;".
"&amp;lt;email&amp;gt;test@email.com&amp;lt;/email&amp;gt;".
"&amp;lt;/profile&amp;gt;".
"&amp;lt;/createCustomerProfileRequest&amp;gt;";

echo "Raw request: " . htmlspecialchars($content) . "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";
$response = send_xml_request($content);

echo '&amp;lt;pre&amp;gt;'; var_dump($response); echo '&amp;lt;/pre&amp;gt;';
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Response:

string(434) "HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Tue, 16 Feb 2010 16:25:21 GMT
X-Powered-By: ASP.NET

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 16 Feb 2010 16:25:21 GMT
X-Powered-By: ASP.NET
Connection: close
Content-Type: text/html
Content-Length: 151

The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:29:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2003#M1773</guid>
      <dc:creator>dvelguru</dc:creator>
      <dc:date>2010-02-16T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2006#M1776</link>
      <description>&lt;P&gt;Are you using your live account credentials? They won't work with the test server. You'll need a &lt;A rel="nofollow" target="_blank" href="https://community.developer.cybersource.com/../Integration-and-Testing/Applying-for-a-developer-test-account/td-p/8"&gt;developer test account&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:47:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2006#M1776</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-02-16T16:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2010#M1780</link>
      <description>&lt;P&gt;These are my developer test account credentials.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:04:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2010#M1780</guid>
      <dc:creator>dvelguru</dc:creator>
      <dc:date>2010-02-16T17:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2011#M1781</link>
      <description>&lt;P&gt;Try using this URL instead: &lt;A rel="nofollow" target="_blank" href="https://apitest.authorize.net/xml/v1/request.api"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:17:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2011#M1781</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-02-16T17:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2012#M1782</link>
      <description>&lt;P&gt;Wow, I don't know what is going on with documentation on the internet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Totally outdated information everywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx Stymiee.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:37:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/2012#M1782</guid>
      <dc:creator>dvelguru</dc:creator>
      <dc:date>2010-02-16T17:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic setup returning invalid merchant ID or password</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/35336#M19732</link>
      <description>&lt;P&gt;This is how it should be using the John Conde variables, if having trouble using a test account:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function __construct($login = '', $transkey = '', $test = true)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $login&amp;nbsp;&amp;nbsp;&amp;nbsp; = trim($login);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transkey = trim($transkey);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (empty($login) || empty($transkey))&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 21:10:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Very-basic-setup-returning-invalid-merchant-ID-or-password/m-p/35336#M19732</guid>
      <dc:creator>auththch</dc:creator>
      <dc:date>2013-08-26T21:10:14Z</dc:date>
    </item>
  </channel>
</rss>

