<?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 Re: the sample sim php code is generating error 13 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19702#M10840</link>
    <description>&lt;P&gt;I put this at the top of the php&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;setSandbox(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got this error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;: Call to a member function setSandbox() on a non-object&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2011 23:02:10 GMT</pubDate>
    <dc:creator>forthis</dc:creator>
    <dc:date>2011-12-05T23:02:10Z</dc:date>
    <item>
      <title>the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19542#M10760</link>
      <description>&lt;P&gt;the sample sim php code is generating error 13&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The following errors have occurred.&lt;BR /&gt;&lt;BR /&gt;(13) The merchant login ID or password is invalid or the account is inactive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;BR /&gt;This sample code is designed to connect to Authorize.net using the SIM method.&lt;BR /&gt;For API documentation or additional sample code, please visit:&lt;BR /&gt;&lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Most of this page can be modified using any standard html. The parts of the&lt;BR /&gt;page that cannot be modified are noted in the comments. This file can be&lt;BR /&gt;renamed as long as the file extension remains .php&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&lt;BR /&gt;"&lt;A href="http://www.w3.org/TR/html4/loose.dtd" target="_blank"&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;html lang='en'&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt; Sample SIM Implementation &amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- This section generates the "Submit Payment" button using PHP --&amp;gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;// This sample code requires the mhash library for PHP versions older than&lt;BR /&gt;// 5.1.2 - &lt;A href="http://hmhash.sourceforge.net/" target="_blank"&gt;http://hmhash.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;// the parameters for the payment can be configured here&lt;BR /&gt;// the API Login ID and Transaction Key must be replaced with valid values&lt;BR /&gt;$loginID = "I entered my login id";&lt;BR /&gt;$transactionKey = "I entered my transaction key";&lt;BR /&gt;$amount = "19.99";&lt;BR /&gt;$description = "Sample Transaction";&lt;BR /&gt;$label = "Submit Payment"; // The is the label on the 'submit' button&lt;BR /&gt;$testMode = "true";&lt;BR /&gt;// By default, this sample code is designed to post to our test server for&lt;BR /&gt;// developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;// for real accounts (even in test mode), please make sure that you are&lt;BR /&gt;// posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;$url = "&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;// If an amount or description were posted to this page, the defaults are overidden&lt;BR /&gt;if (array_key_exists("amount",$_REQUEST))&lt;BR /&gt;{ $amount = $_REQUEST["amount"]; }&lt;BR /&gt;if (array_key_exists("amount",$_REQUEST))&lt;BR /&gt;{ $description = $_REQUEST["description"]; }&lt;/P&gt;&lt;P&gt;// an invoice is generated using the date and time&lt;BR /&gt;$invoice = date(YmdHis);&lt;BR /&gt;// a sequence number is randomly generated&lt;BR /&gt;$sequence = rand(1, 1000);&lt;BR /&gt;// a timestamp is generated&lt;BR /&gt;$timeStamp = time();&lt;/P&gt;&lt;P&gt;// The following lines generate the SIM fingerprint. PHP versions 5.1.2 and&lt;BR /&gt;// newer have the necessary hmac function built in. For older versions, it&lt;BR /&gt;// will try to use the mhash library.&lt;BR /&gt;if( phpversion() &amp;gt;= '5.1.2' )&lt;BR /&gt;{ $fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey); }&lt;BR /&gt;else&lt;BR /&gt;{ $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey)); }&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Print the Amount and Description to the screen. --&amp;gt;&lt;BR /&gt;Amount: &amp;lt;?php echo $amount; ?&amp;gt; &amp;lt;br /&amp;gt;&lt;BR /&gt;Description: &amp;lt;?php echo $description; ?&amp;gt; &amp;lt;br /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Create the HTML form containing necessary SIM post values --&amp;gt;&lt;BR /&gt;&amp;lt;form method='post' action='&amp;lt;?php echo $url; ?&amp;gt;' &amp;gt;&lt;BR /&gt;&amp;lt;!-- Additional fields can be added here as outlined in the SIM integration&lt;BR /&gt;guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; --&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_login' value='&amp;lt;?php echo $loginID; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_amount' value='&amp;lt;?php echo $amount; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_description' value='&amp;lt;?php echo $description; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_invoice_num' value='&amp;lt;?php echo $invoice; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_fp_sequence' value='&amp;lt;?php echo $sequence; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_fp_timestamp' value='&amp;lt;?php echo $timeStamp; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_fp_hash' value='&amp;lt;?php echo $fingerprint; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_test_request' value='&amp;lt;?php echo $testMode; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='hidden' name='x_show_form' value='PAYMENT_FORM' /&amp;gt;&lt;BR /&gt;&amp;lt;input type='submit' value='&amp;lt;?php echo $label; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 05:05:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19542#M10760</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-01T05:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19550#M10764</link>
      <description>&lt;P&gt;This submits to the sandbox (developer / test) server. Are you using a sandbox account, or a production account in test mode?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 07:18:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19550#M10764</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-01T07:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19644#M10811</link>
      <description>&lt;P&gt;I did it with testmode true and testmode false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using my developer account&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 05:55:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19644#M10811</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-03T05:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19652#M10815</link>
      <description>&lt;P&gt;Add this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$transaction-&amp;gt;setSandbox(true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 08:57:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19652#M10815</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-03T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19702#M10840</link>
      <description>&lt;P&gt;I put this at the top of the php&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;setSandbox(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got this error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;: Call to a member function setSandbox() on a non-object&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 23:02:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19702#M10840</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-05T23:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19708#M10843</link>
      <description>&lt;P&gt;Are you just using the sample code(NOT the SDKs)?&lt;/P&gt;&lt;P&gt;If so&lt;/P&gt;&lt;PRE&gt;// posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;
$url = "&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";&lt;/PRE&gt;&lt;P&gt;If your ID and Key is for production, change the url to the secure.authoirze.net&lt;/P&gt;&lt;P&gt;If it from test account, change it to test.authorize.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. If your ID and Key is for production, make sure you running on testmode for testing. Better yet, get a&amp;nbsp;&lt;A href="https://developer.authorize.net/testaccount/" target="_self"&gt;test account&lt;/A&gt; for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Authorize-Net-Test-Account-FAQs/ba-p/17440" target="_blank"&gt;http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Authorize-Net-Test-Account-FAQs/ba-p/17440&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 00:59:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19708#M10843</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-06T00:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19714#M10846</link>
      <description>&lt;P&gt;You obviously have to use $transaction = new [insert Authorize.net class call here] before you can call the setSandbox method on it. See your sample code.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 02:16:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19714#M10846</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-06T02:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19724#M10851</link>
      <description>I added this code to the top of the php: require_once 'anet_php_sdk/AuthorizeNet.php'; $transaction = new AuthorizeNetSIM("$apiLoginID", "$transactionKey"); $transaction-&amp;gt;setSandbox(true); Fatal error: Call to undefined method AuthorizeNetSIM::setSandbox()</description>
      <pubDate>Tue, 06 Dec 2011 04:13:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19724#M10851</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T04:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19726#M10852</link>
      <description>&lt;P&gt;I added this code to the top of the php:&lt;/P&gt;&lt;P&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; $transaction = new AuthorizeNetSIM("$apiLoginID", "$transactionKey"); $transaction-&amp;gt;setSandbox(true);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fatal error: Call to undefined method AuthorizeNetSIM::setSandbox()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 04:14:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19726#M10852</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T04:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19730#M10854</link>
      <description>&lt;P&gt;Ok , try this instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FOR DEVELOPER ACCOUNT:&lt;/P&gt;&lt;PRE&gt;define("AUTHORIZENET_SANDBOX", true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;FOR PRODUCTION ACCOUNT:&lt;/P&gt;&lt;PRE&gt;define("AUTHORIZENET_SANDBOX", false);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 08:03:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19730#M10854</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-06T08:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19788#M10882</link>
      <description>&lt;P&gt;&lt;STRONG&gt;set sandbox to true/false and changed the login information&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;both got﻿&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;: Call to undefined method AuthorizeNetSIM::setSandbox()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 01:17:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19788#M10882</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-08T01:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19796#M10886</link>
      <description>&lt;P&gt;Did you read the rest of the thread? The second method I posted should work.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 12:59:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19796#M10886</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-08T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: the sample sim php code is generating error 13</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19802#M10889</link>
      <description>&lt;P&gt;okay, got it working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could I have a credit card textbox on my website&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe I should close this question and open another question.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 13:33:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/the-sample-sim-php-code-is-generating-error-13/m-p/19802#M10889</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-08T13:33:22Z</dc:date>
    </item>
  </channel>
</rss>

