<?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: Changing the amount in SIM Integration in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1387#M1193</link>
    <description>&lt;P&gt;I believe your problem is that you changed the amount field to be a text field and are changing it.&amp;nbsp; The code which generates the hash value incorporates the amount into the hash.&amp;nbsp; This all happens &lt;EM&gt;before&lt;/EM&gt; the page is ever rendered to the client browser, so if you change the x_amount field to something different than what was computed into the hash value, I suspect you would get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a common scenario and therefore a common problem.&amp;nbsp; This most typically happens on "donation" type forms where the user of the website wants to be able to enter an amount.&amp;nbsp; The typical way I have seen to work around this is to submit the form back to the same .php file, detect that it was a submit (via a hidden field&amp;nbsp;set in javascript or something), recalculate the hash, regenerate the required form fields with the desired values, and then inject some javascript at the bottom of the page which automatically submits the form to Authorize.net as soon as the page is loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you need it, I can provide an example of this.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2010 01:25:34 GMT</pubDate>
    <dc:creator>itdevworks</dc:creator>
    <dc:date>2010-01-07T01:25:34Z</dc:date>
    <item>
      <title>Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1379#M1185</link>
      <description>&lt;P&gt;Hi, im new here, and im trying to make SIM Integration with Authorize.net, first excuse my bad english!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;everything is OK in my test using the sample code (php version), but when i try to change the defaul amount via Web, then i get a error, i read the forum about putting trim in the variable but still i getting the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i put diferent trim:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($_REQUEST["amount"])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ $amount = trim($_REQUEST["amount"]); }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( phpversion() &amp;gt;= '5.1.2' )&lt;BR /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;$fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . trim($amount) . "^", $transactionKey); }&lt;BR /&gt;else&lt;BR /&gt;{ $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . trim($amount) . "^", $transactionKey)); }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i always get this msg: (99) This transaction cannot be accepted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To enter a different amount via web i change the input field from hidden to text, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='text'&amp;nbsp;&amp;nbsp; name='x_amount' value='$amount' /&amp;gt;";&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2010 18:30:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1379#M1185</guid>
      <dc:creator>bprado</dc:creator>
      <dc:date>2010-01-06T18:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1380#M1186</link>
      <description>&lt;P&gt;Welcome to the community. :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do me a favor and post your code &lt;EM&gt;before&lt;/EM&gt; you made any changes to it. It will be easier to troubleshoot it for you that way.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2010 19:28:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1380#M1186</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-01-06T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1381#M1187</link>
      <description>&lt;P&gt;thk for the answer, im using the sample code of this web site, &lt;A target="_blank" rel="nofollow" href="http://developer.authorize.net/resources/files/samplecode/php_sim.zip"&gt;http://developer.authorize.net/resources/files/samplecode/php_sim.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i only change what i put on the first post, and the only changes were adding a trim and also change "hidden" for "text" in the input field of the amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the original code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($_REQUEST["amount"])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ $amount = $_REQUEST["amount"]; }&lt;BR /&gt;if ($_REQUEST["description"])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( phpversion() &amp;gt;= '5.1.2' )&lt;BR /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;$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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_amount' value='$amount' /&amp;gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you need all the source code just reply this so i will do a copy and paste&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2010 19:57:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1381#M1187</guid>
      <dc:creator>bprado</dc:creator>
      <dc:date>2010-01-06T19:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1382#M1188</link>
      <description>&lt;P&gt;The whole source code you are working with would be ideal. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2010 19:58:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1382#M1188</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-01-06T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1383#M1189</link>
      <description>&lt;P&gt;&lt;FONT color="#ff0000"&gt;The red color are the code that i change, and this code work if i dont change the amount field, when i enter another value in the amount field i get that error.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;I add trim because i read in the forums here, that is a posible solution, but in my code dont work!&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;HTML lang='en'&amp;gt;&lt;BR /&gt;&amp;lt;HEAD&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&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;BR /&gt;&lt;BR /&gt;$loginID&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= "xxxxxxxxxxxxxxxxx";&lt;BR /&gt;$transactionKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";&lt;BR /&gt;$amount &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= "19.99";&lt;BR /&gt;$description &amp;nbsp;&amp;nbsp; &amp;nbsp;= "Sample Transaction";&lt;BR /&gt;$label &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= "Submit Payment"; // The is the label on the 'submit' button&lt;BR /&gt;$testMode&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= "false";&lt;BR /&gt;$url&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= "&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;BR /&gt;&lt;BR /&gt;// If an amount or description were posted to this page, the defaults are overidden&lt;BR /&gt;if ($_REQUEST["amount"])&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ $amount = Trim($_REQUEST["amount"]); }&lt;/FONT&gt;&lt;BR /&gt;if ($_REQUEST["description"])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ $description = $_REQUEST["description"]; }&lt;BR /&gt;&lt;BR /&gt;// an invoice is generated using the date and time&lt;BR /&gt;$invoice&amp;nbsp;&amp;nbsp; &amp;nbsp;= date(YmdHis);&lt;BR /&gt;// a sequence number is randomly generated&lt;BR /&gt;$sequence&amp;nbsp;&amp;nbsp; &amp;nbsp;= rand(1, 1000);&lt;BR /&gt;// a timestamp is generated&lt;BR /&gt;$timeStamp&amp;nbsp;&amp;nbsp; &amp;nbsp;= time ();&lt;BR /&gt;&lt;BR /&gt;// The following lines generate the SIM fingerprint.&amp;nbsp; PHP versions 5.1.2 and&lt;BR /&gt;// newer have the necessary hmac function built in.&amp;nbsp; 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;{&amp;nbsp;&amp;nbsp; &amp;nbsp;$fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . &lt;FONT color="#ff0000"&gt;Trim($amount)&lt;/FONT&gt; . "^", $transactionKey); }&lt;BR /&gt;else&lt;BR /&gt;{ $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . &lt;FONT color="#ff0000"&gt;Trim($amount)&lt;/FONT&gt; . "^", $transactionKey)); }&lt;BR /&gt;&lt;BR /&gt;// Print the Amount and Description to the screen.&lt;BR /&gt;echo "Amount: $amount &amp;lt;br /&amp;gt;";&lt;BR /&gt;echo "Description: $description &amp;lt;br /&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;echo "&amp;lt;FORM method='post' action='$url' &amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_login' value='$loginID' /&amp;gt;";&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='text' name='x_amount' value='$amount' /&amp;gt;";&lt;/FONT&gt;&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_description' value='$description' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_invoice_num' value='$invoice' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_fp_sequence' value='$sequence' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_fp_timestamp' value='$timeStamp' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_fp_hash' value='$fingerprint' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_test_request' value='$testMode' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;INPUT type='hidden' name='x_show_form' value='PAYMENT_FORM' /&amp;gt;";&lt;BR /&gt;echo "&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;input type='submit' value='$label' /&amp;gt;";&lt;BR /&gt;echo "&amp;lt;/FORM&amp;gt;";&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/BODY&amp;gt;&lt;BR /&gt;&amp;lt;/HTML&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2010 20:03:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1383#M1189</guid>
      <dc:creator>bprado</dc:creator>
      <dc:date>2010-01-06T20:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1387#M1193</link>
      <description>&lt;P&gt;I believe your problem is that you changed the amount field to be a text field and are changing it.&amp;nbsp; The code which generates the hash value incorporates the amount into the hash.&amp;nbsp; This all happens &lt;EM&gt;before&lt;/EM&gt; the page is ever rendered to the client browser, so if you change the x_amount field to something different than what was computed into the hash value, I suspect you would get an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a common scenario and therefore a common problem.&amp;nbsp; This most typically happens on "donation" type forms where the user of the website wants to be able to enter an amount.&amp;nbsp; The typical way I have seen to work around this is to submit the form back to the same .php file, detect that it was a submit (via a hidden field&amp;nbsp;set in javascript or something), recalculate the hash, regenerate the required form fields with the desired values, and then inject some javascript at the bottom of the page which automatically submits the form to Authorize.net as soon as the page is loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you need it, I can provide an example of this.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2010 01:25:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1387#M1193</guid>
      <dc:creator>itdevworks</dc:creator>
      <dc:date>2010-01-07T01:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1388#M1194</link>
      <description>&lt;P&gt;Basically what Dave is saying is you are sending the form submission to Authorize.Net with a conflicting hash and total amount. Because the form submission goes straight to Authorize.Net it never reaches any of the PHP code at the top of that file and thus a proper hash is never calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what Dave is trying to explain to get you started (without the JavaScript). It requires two steps. First the user submits the amount they wish to pay and then they submit a second form (just a button that contains all of the proper hidden form values) that takes them to Authorize.Net's payment page to complete the transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;HTML lang='en'&amp;gt;&lt;BR /&gt;&amp;lt;HEAD&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;BR /&gt;&amp;lt;?php&lt;BR /&gt;if (isset($_POST) &amp;amp;&amp;amp; is_array($_POST) &amp;amp;&amp;amp; count($_POST))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $loginID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "xxxxxxxxxxxxxxxxx";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $transactionKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $description&amp;nbsp;&amp;nbsp;&amp;nbsp; = "Sample Transaction";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $testMode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "false";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = (float) trim($_REQUEST["x_amount"]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $invoice&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = date(YmdHis);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $sequence&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = rand(1, 1000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $timeStamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = time();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // The following lines generate the SIM fingerprint.&amp;nbsp; PHP versions 5.1.2 and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // newer have the necessary hmac function built in.&amp;nbsp; For older versions, it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // will try to use the mhash library.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( phpversion() &amp;gt;= '5.1.2' )&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; $fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&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; $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FORM method='post' action='&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; &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_login' value='&amp;lt;?php echo $loginID; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_amount' value='&amp;lt;?php echo $amount; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_description' value='&amp;lt;?php echo $description; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_invoice_num' value='&amp;lt;?php echo $invoice; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_fp_sequence' value='&amp;lt;?php echo $sequence; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_fp_timestamp' value='&amp;lt;?php echo $timeStamp; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_fp_hash' value='&amp;lt;?php echo $fingerprint; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_test_request' value='&amp;lt;?php echo $testMode; ?&amp;gt;' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;INPUT type='hidden' name='x_show_form' value='PAYMENT_FORM' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type='submit' value='Submit Payment' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/FORM&amp;gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FORM method='post' action='&amp;lt;?php echo $_SERVER['PHP_SELF']; ?&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount: &amp;lt;INPUT type='text' name='x_amount' value='' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type='submit' value='Enter Amount' /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/FORM&amp;gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/BODY&amp;gt;&lt;BR /&gt;&amp;lt;/HTML&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't contain any JavaScript to resubmit the form but should give you an idea of what Dave is saying. If I get a chance I'll add the JavaScript to it later or maybe Dave will beat me to it. ;)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2010 02:33:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1388#M1194</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-01-07T02:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1390#M1195</link>
      <description>&lt;P&gt;Here is the full text of the .PHP template page I use for donation forms (where the amount can be entered on the page).&amp;nbsp; Note that while I start from this, I end up changing and fixing things as I go, so this actual code has not been tested as-is.&amp;nbsp; It may need some fixups before running without problem.&amp;nbsp; In particular, you certainly need to provide the API Login and Transaciton Key for whatever account you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
//
// How to use this page...
// 
// NOTE: You can search for [Fixup #] (with the square brackets), where #
//       is the step number from below, to find where in the code to make
//       the changes.
//
//  1. Fill in the appropriate information under the "Site Identity
//     Constants" section below.
//
//  2. Fill in the appropriate information under the "Authorize.net
//     Credentials" below.
//
//  3. (Optional) Select to use the Live or Test server/account.
//     Default=Test.
//
//  4. Find the "How to apply your donation" section in the HTML and fix
//     up according to your needs (different options, checkboxes for
//     multi-select, etc.)
//
//  5. Find the comment "Make Description Here" below and modify the
//     following line to match the control(s) set up in step 3.
//
//  6. Test/Fix/Test/Deploy

//
// [Fixup 1] Site Identity Constants
//
$SiteOwnerName = "site-owner-name";
$PageTitle = "page-title";
$ReturnHomePage = "&lt;A rel="nofollow" target="_blank" href="http://www.someurl.org"&gt;www.someurl.org&lt;/A&gt;"

//
// [Fixup 2] Authorize.net Credentials
//
// Note: The Test account credentials are for my own test account, but you
//       can replace them with your own if you have one.
//
$LiveLoginId = "";
$LiveTransactionKey = "";

$TestLoginId = "***********";
$TestTransactionKey = "****************";

//
// [Fixup 3] Choose live or test server/account
//
$UseTestAccount = true;

//
// Now set the global vars used to process the request
//
$LiveGatewayUrl = "&lt;A rel="nofollow" target="_blank" href="https://secure.authorize.net/gateway/transact.dll"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;";
$TestGatewayUrl = "&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;";

if ($UseTestAccount) {
    $loginid = $TestLoginId;
    $x_tran_key = $TestTransactionKey;
    $gateway_url = $TestGatewayUrl;
} else {
    $loginid = $LiveLoginId;
    $x_tran_key = $TestTransactionKey;
    $gateway_url = $LiveGatewayUrl;
}


//
// Other Global Vars
//
$doredirect = false;

//
// Includes
//
include ("simlib.php");

//
// did form submit??
//
if (isset($HTTP_POST_VARS["formSubmitted"])){
    $strFirstName = $HTTP_POST_VARS["x_first_name"];
    $strLastName = $HTTP_POST_VARS["x_last_name"];
    //
    // [Fixup 5] Make Description Here
    //
    $strDescription = "[ApplyTo:". trim($HTTP_POST_VARS["ApplyTo"])."] + [Country:" . trim($HTTP_POST_VARS["ForCountry"])."]";
    $amount = $HTTP_POST_VARS["x_amount"];
    if (substr($amount, 0,1) == "$") {
    $amount = substr($amount,1);
    }
    if (is_numeric($amount))
    {
        $doredirect=true;
    } else {
        $msg = "Please enter only a numeric amount.";
    }
}
?&amp;gt;

&amp;lt;?
if ($doredirect == false)
{
?&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A rel="nofollow" target="_blank" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;
&amp;lt;html xmlns="&lt;A rel="nofollow" target="_blank" href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;

&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;- Donations&amp;lt;/title&amp;gt;
    &amp;lt;meta name="description" content="&amp;lt;? echo $SiteOwnerName ?&amp;gt;"&amp;gt;
    &amp;lt;meta name="resource-type" content="document"&amp;gt;
    &amp;lt;meta name="revisit-after" content="14 days"&amp;gt;
    &amp;lt;meta name="classification" content="consumer"&amp;gt;
    &amp;lt;meta name="keywords" content="&amp;lt;? echo $SiteOwnerName ?&amp;gt;"&amp;gt;
    &amp;lt;meta name="robots" content="All"&amp;gt;
    &amp;lt;meta name="distribution" content="global"&amp;gt;
    &amp;lt;meta name="rating" content="general"&amp;gt;
    &amp;lt;meta name="copyright" content="2008"&amp;gt;
    &amp;lt;meta name="web author" content="ITDevWorks, LLC: wwww.itdevworks.com"&amp;gt;
    &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&amp;gt;
    &amp;lt;style type="text/css"&amp;gt;
    &amp;lt;!--
    fieldset
    {
        float: left;
        clear: left;
        width: 400px;
        margin: 0 0 0 0;
        padding: 0em 1em 1em 0;
        border: none;
    }
    
    fieldset legend
    {
        font-size: 1em;
        margin-right: 0;
        padding: 0;
        font-family: Corbel, Geneva, Arial, Helvetica, sans-serif;
        font-size: 1.5em;
        font-weight: 600;
    }
    fieldset ol
    {
        padding: 0;
        border-top: solid 1px black;
        list-style: none;
        margin-left: 10px;
        margin-top: 2px;
    }
    
    fieldset li
    {
        padding: 0 0 0 0;
        float: left;
        clear: left;
        margin: 4px 10px 0 0;
        width: 100%;
        vertical-align: top;
    }
    fieldset label
    {
        float: left;
        font-size: 1em;
        width: 60%;
        margin-top: 3px;
        text-align: left;
    }
    
    fieldset input
    {
        width: 95%;
    }
    
    fieldset select
    {
        width: 38%;
    }
    
    fieldset input.btn-submit
    {
        margin-top: 10px;
        text-align: center;
        width:250px;
    }
    
    --&amp;gt;
    &amp;lt;/style&amp;gt;

    &amp;lt;script language="JavaScript"&amp;gt;
    &amp;lt;!--
    function IsNumeric(sText)
    
    {
        var ValidChars = "0123456789.";
        var IsNumber=true;
        var Char;
        
        for (i = 0; i &amp;lt; sText.length &amp;amp;&amp;amp; IsNumber == true; i++) {
            Char = sText.charAt(i); 
            if (ValidChars.indexOf(Char) == -1) {
                IsNumber = false;
            }
        }
        if (IsNumber==false) {
            alert('Please enter only a number.');
            document.getElementById("formsub").innerHTML = "";
        }
        else {
            document.getElementById("formsub").innerHTML = 
            "&amp;lt;input type=\"submit\" class=\"btn-submit\" value=\"Click " +
            "here for secure payment form\" /&amp;gt;&amp;lt;input type=\"hidden\" " +
            "name=\"formSubmitted\" value=\"1\"/&amp;gt;";     
        }
    }
    
    // --&amp;gt;
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;p style="font-weight: bold; font-family:Arial, Helvetica, Sans-Serif; font-size: 14px;"&amp;gt;
    &amp;lt;? echo "$SiteOwnerName -  $PageTitle" ?&amp;gt;
&amp;lt;/p&amp;gt;
&amp;lt;? if ($msg&amp;lt;&amp;gt;"") {echo "&amp;lt;p color=red&amp;gt;$msg&amp;lt;/p&amp;gt;";} ?&amp;gt;                         
&amp;lt;form method="POST" action="donate.php"&amp;gt;
    &amp;lt;div style="text-align:left; font-family: Verdana; font-size:.8em;"&amp;gt;
        &amp;lt;fieldset&amp;gt;
        &amp;lt;legend&amp;gt;
        Donation Form
        &amp;lt;/legend&amp;gt;
        &amp;lt;ol&amp;gt;
            &amp;lt;li&amp;gt;
                &amp;lt;label for="x_first_name"&amp;gt;
                *First name:
                &amp;lt;/label&amp;gt;
                &amp;lt;input type="text" name="x_first_name" size="30"/&amp;gt;
            &amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;
                &amp;lt;label for="x_last_name"&amp;gt;
                *Last name:
                &amp;lt;/label&amp;gt;
                &amp;lt;input type="text" name="x_last_name"/&amp;gt;
            &amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;
                &amp;lt;label for="x_amount" &amp;gt;
                *Donation Amount: $
                &amp;lt;/label&amp;gt;
                &amp;lt;input type="text" name="x_amount"
                    onblur="IsNumeric(this.value);"/&amp;gt;
            &amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;
&amp;lt;?
                //
                // [Fixup 4]. Change these controls as per your requirements
                // 
?&amp;gt;
                
                &amp;lt;label for="ApplyTo"&amp;gt;
                *How to apply your donation:
                &amp;lt;/label&amp;gt;
                &amp;lt;select name="ApplyTo" id="ApplyTo"&amp;gt;
                    &amp;lt;option value="As needed" selected&amp;gt;As needed&amp;lt;/option&amp;gt;
                    &amp;lt;option value="A good cause"&amp;gt;A good cause&amp;lt;/option&amp;gt;
                    &amp;lt;option value="Good cause 2"&amp;gt;Good cause 2&amp;lt;/option&amp;gt;
                    &amp;lt;option value="Good cause 3"&amp;gt;Good cause 3&amp;lt;/option&amp;gt;
                    &amp;lt;option value="And so on"&amp;gt;And so on...&amp;lt;/option&amp;gt;
                &amp;lt;/select&amp;gt;
            &amp;lt;/li&amp;gt;
            &amp;lt;li id="formsub"&amp;gt;
                &amp;lt;input type="submit" class="btn-submit"
                    value="Click here for secure payment form" /&amp;gt;
                &amp;lt;input type="hidden" name="formSubmitted" value="1"/&amp;gt;
            &amp;lt;/li&amp;gt;
        &amp;lt;/ol&amp;gt;
        &amp;lt;/fieldset&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;? 
} else {// DO REDIRECT
    srand(time());
    $sequence = rand(1, 1000);
    // Insert the form elements required for SIM by calling InsertFP
    $ret = getFP($loginid, $x_tran_key, $amount, $sequence);
    $fields = array(  
        'x_fp_sequence'=&amp;gt;$sequence,  
        'x_fp_timestamp'=&amp;gt;$ret[1],  
        'x_fp_hash'=&amp;gt;$ret[0],  
        'x_description'=&amp;gt;$strDescription,  
        'x_login'=&amp;gt;$loginid,  
        'x_show_form'=&amp;gt;"PAYMENT_FORM",  
        'x_first_name'=&amp;gt;$strFirstName,  
        'x_last_name'=&amp;gt;$strLastName,  
        'x_amount'=&amp;gt;$amount,  
        'x_header_html_payment_form'=&amp;gt;"&amp;lt;div style='font-family: Verdana; font-size: 18px; font-weight: bold;'&amp;gt;&amp;lt;i&amp;gt;Thank You&amp;lt;/i&amp;gt; from $SiteOwnerName.&amp;lt;/div&amp;gt;",  
        'x_footer_html_payment_form'=&amp;gt;"&amp;lt;span style='font-style:italic; font-size:.8em;'&amp;gt;God Bless&amp;lt;/span&amp;gt;",  
        'x_receipt_link_method'=&amp;gt;"LINK",  
        'x_receipt_link_text'=&amp;gt;"Return to $SiteOwnerName site", 
        'x_receipt_link_url'=&amp;gt;"http://$ReturnHomePage"
    );  
    echo "&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;";
    echo "&amp;lt;form name='myform' action='$gateway_url' method='post'&amp;gt;";
    foreach ($fields as $key =&amp;gt; $value) {
        print "&amp;lt;input type='hidden' name='".$key."' value=\"".$value."\"&amp;gt;";
        $fields_string .= "$key=$value";
    }
    echo "&amp;lt;/form&amp;gt;";
?&amp;gt;
&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
document.myform.submit();
&amp;lt;/script&amp;gt;
&amp;lt;?
}
?&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2010 03:23:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1390#M1195</guid>
      <dc:creator>itdevworks</dc:creator>
      <dc:date>2010-01-07T03:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1400#M1205</link>
      <description>&lt;P&gt;wooooooooooo, this work very well!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thk Dave for that great code, i used it in base to create mine code, also thk John for the help too!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thk all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:D&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2010 04:54:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1400#M1205</guid>
      <dc:creator>bprado</dc:creator>
      <dc:date>2010-01-08T04:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1440#M1242</link>
      <description>&lt;P&gt;I'm glad you got this working. Is there any way you can post your final working code for us newbies? Where there multiple PHP code pages or just the one you worked on here? I'm a Web designer with a client who purchaed Authorize.net to make credit card payments via their Website. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2010 16:07:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1440#M1242</guid>
      <dc:creator>slim</dc:creator>
      <dc:date>2010-01-11T16:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1552#M1347</link>
      <description>&lt;P&gt;sorry for the delay, the one here worked very well, with just some modificactions for customize purpose, if you need any help just post here&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2010 17:51:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/1552#M1347</guid>
      <dc:creator>bprado</dc:creator>
      <dc:date>2010-01-22T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2536#M2275</link>
      <description>&lt;P&gt;Could you provide the code for asp users as well?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:24:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2536#M2275</guid>
      <dc:creator>fschechtman</dc:creator>
      <dc:date>2010-03-24T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2538#M2277</link>
      <description>&lt;P&gt;&lt;A href="http://developer.authorize.net/resources/files/samplecode/asp_sim.zip" rel="nofollow" target="_self"&gt;Authorize.Net has sample code in ASP.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:28:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2538#M2277</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2010-03-24T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2539#M2278</link>
      <description>&lt;P&gt;I am using the sample code but don't understand how to update the hidden field x_amount after the user clicks on the Submit button.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:40:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/2539#M2278</guid>
      <dc:creator>fschechtman</dc:creator>
      <dc:date>2010-03-24T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/14060#M8319</link>
      <description>&lt;P&gt;You update this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; $amount = "19.99";﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the parameters area near the top of he sample code.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:20:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/14060#M8319</guid>
      <dc:creator>sharedvision1</dc:creator>
      <dc:date>2011-06-29T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21107#M11519</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an ancient topic.. when I run Dave's code I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parse error&lt;/STRONG&gt;: syntax error, unexpected T_VARIABLE in &lt;STRONG&gt;sim.php&lt;/STRONG&gt; on line &lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Line 45 contains $LiveLoginId = "xxxxxxxxxxx";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where xxxxxxxxxx is my liveloginID&lt;BR /&gt;Line 46: $LiveTransactionKey = "xxxxxxxxxx";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any idea of what may be going on?&amp;nbsp; thanks.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:46:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21107#M11519</guid>
      <dc:creator>hlemons</dc:creator>
      <dc:date>2012-01-04T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21109#M11520</link>
      <description>&lt;P&gt;There is a semicolon missing at the end of this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ReturnHomePage = "&lt;A href="http://www.someurl.org" target="_blank"&gt;www.someurl.org&lt;/A&gt;"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Just add it there and it should work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$ReturnHomePage = "&lt;A href="http://www.someurl.org" target="_blank"&gt;www.someurl.org&lt;/A&gt;";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:48:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21109#M11520</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2012-01-04T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21113#M11522</link>
      <description>&lt;P&gt;Gotcha, now it's throwing an error for simlib.php.&amp;nbsp; What does this file do and where may I acquire it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: include(simlib.php) [&lt;A target="_blank" href="http://mrbuggs.com/function.include"&gt;&lt;FONT color="#000000"&gt;function.include&lt;/FONT&gt;&lt;/A&gt;]: failed to open stream: No such file or directory in &lt;STRONG&gt;sim.php&lt;/STRONG&gt; on line &lt;STRONG&gt;81&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: include(simlib.php) [&lt;A target="_blank" href="http://mrbuggs.com/function.include"&gt;&lt;FONT color="#000000"&gt;function.include&lt;/FONT&gt;&lt;/A&gt;]: failed to open stream: No such file or directory in &lt;STRONG&gt;sim.php&lt;/STRONG&gt; on line &lt;STRONG&gt;81&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: include() [&lt;A target="_blank" href="http://mrbuggs.com/function.include"&gt;&lt;FONT color="#000000"&gt;function.include&lt;/FONT&gt;&lt;/A&gt;]: Failed opening 'simlib.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in &lt;STRONG&gt;sim.php&lt;/STRONG&gt; on line &lt;STRONG&gt;81&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:53:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21113#M11522</guid>
      <dc:creator>hlemons</dc:creator>
      <dc:date>2012-01-04T18:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21117#M11524</link>
      <description>&lt;P&gt;simlib.php probably represents the path to the SIM library file in your Authorize.net PHP SDK (at least, I would hope so...) Try changing to that and see if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 19:00:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21117#M11524</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-01-04T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the amount in SIM Integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21127#M11529</link>
      <description>&lt;P&gt;Thank you for your help TJ, looks like I have it sorted out now. You guys are a lifesaver.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 19:32:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Changing-the-amount-in-SIM-Integration/m-p/21127#M11529</guid>
      <dc:creator>hlemons</dc:creator>
      <dc:date>2012-01-04T19:32:04Z</dc:date>
    </item>
  </channel>
</rss>

