<?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: Transaction Declined in SIM API in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56031#M30849</link>
    <description>&lt;P&gt;I see that at some point you used to have&amp;nbsp;&lt;STRONG&gt;x_currency_code&lt;/STRONG&gt; among the sent fields, which you are supposed to include in the generated fingerprint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This field is commented out now, so no longer need in the print but you still have a traling . "^" which is not supposed to be there. Your fingerprint is almost certainly wrong because of this and doesn't check out properly with Authorize.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 11:37:17 GMT</pubDate>
    <dc:creator>martintz0n3v</dc:creator>
    <dc:date>2016-10-25T11:37:17Z</dc:date>
    <item>
      <title>Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56028#M30846</link>
      <description>&lt;P&gt;&amp;nbsp;I am new in autorize.net. I found a sample a code of SIM API and tested it. It works perefectly fine. But when I implement the same in Live mode, it generate error by by saying Transaction Declined(General Error). AVS not processed(P).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$loginID = "My_login_id";
$transactionKey = "my_transaction_id";
$amount = $price_gbp;
$description = "Item Description";
$label = "Authorize.net"; // The is the label on the 'submit' button
$testMode = "false";
$url = "https://secure.authorize.net/gateway/transact.dll";
 
if (array_key_exists("amount",$_REQUEST))
{ $amount = $_REQUEST["amount"]; }
if (array_key_exists("description",$_REQUEST))
{ $description = $_REQUEST["description"]; }
 
$invoice = date('YmdHis');
$sequence = rand(1, 1000);
$timeStamp = time();
 
if( phpversion() &amp;gt;= '5.1.2' )
{ $fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey); }
else 
{ $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey)); }
 
&amp;lt;form method='post' name='autorizenet' action='$url' &amp;gt;
&amp;lt;input type='hidden' name='x_login' value='$loginID' /&amp;gt;
&amp;lt;input type='hidden' name='x_amount' value='$amount' /&amp;gt;
&amp;lt;!--input type='hidden' name='x_currency_code' value='USD' /--&amp;gt;

&amp;lt;input type='hidden' name='x_description' value='$description' /&amp;gt;
&amp;lt;input type='hidden' name='x_invoice_num' value='$invoice' /&amp;gt;
&amp;lt;input type='hidden' name='x_fp_sequence' value='$sequence' /&amp;gt;
&amp;lt;input type='hidden' name='x_fp_timestamp' value='$timeStamp' /&amp;gt;
&amp;lt;input type='hidden' name='x_fp_hash' value='$fingerprint' /&amp;gt;
&amp;lt;input type='hidden' name='x_test_request' value='$testMode' /&amp;gt;";
$i_sl=1;
foreach ($_SESSION["cart_products"] as $cart_itm)
{
echo "&amp;lt;INPUT TYPE='HIDDEN' name='x_line_item' VALUE='item $i_sl&amp;lt;|&amp;gt;Item Name:&amp;lt;|&amp;gt;".$cart_itm['product_name']."&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;".round(currency('USD', 'GBP',$cart_itm["product_price"]),2)."&amp;lt;|&amp;gt;N'&amp;gt;";
$i_sl++;
} 
echo "&amp;lt;input type='hidden' name='x_cust_id' value='$c_id' /&amp;gt;
&amp;lt;input type='hidden' name='x_first_name' value='$fname' /&amp;gt;
&amp;lt;input type='hidden' name='x_last_name' value='$lname' /&amp;gt;
&amp;lt;input type='hidden' name='x_address' value='$address' /&amp;gt;
&amp;lt;input type='hidden' name='x_city' value='$city' /&amp;gt;
&amp;lt;input type='hidden' name='x_state' value='$state' /&amp;gt;
&amp;lt;input type='hidden' name='x_zip' value='$zip' /&amp;gt;
&amp;lt;input type='hidden' name='x_country' value='$country' /&amp;gt;
&amp;lt;input type='hidden' name='x_phone' value='$phone' /&amp;gt;
&amp;lt;input type='hidden' name='x_email' value='$email' /&amp;gt;

&amp;lt;input type='hidden' name='x_show_form' value='PAYMENT_FORM' /&amp;gt;
&amp;lt;input type='submit' class='btn btn-lg btn-danger' value='$label' style='width:305px !important' /&amp;gt;
&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i also configure the request/Response URL on merchant website and add a url link with GET method to reach back to my website.&lt;/P&gt;&lt;P&gt;Why my transaction are declined. There is not credit card bank issue. Please help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:34:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56028#M30846</guid>
      <dc:creator>sourav</dc:creator>
      <dc:date>2016-10-25T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56031#M30849</link>
      <description>&lt;P&gt;I see that at some point you used to have&amp;nbsp;&lt;STRONG&gt;x_currency_code&lt;/STRONG&gt; among the sent fields, which you are supposed to include in the generated fingerprint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This field is commented out now, so no longer need in the print but you still have a traling . "^" which is not supposed to be there. Your fingerprint is almost certainly wrong because of this and doesn't check out properly with Authorize.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 11:37:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56031#M30849</guid>
      <dc:creator>martintz0n3v</dc:creator>
      <dc:date>2016-10-25T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56032#M30850</link>
      <description>&lt;P&gt;Should i remove the &lt;STRONG&gt;x_currency_code&amp;nbsp;&lt;/STRONG&gt;? will it solve my problem?&lt;/P&gt;&lt;P&gt;I din't get you about the fingerprint part and the&amp;nbsp;&lt;SPAN&gt;traling . "^".&amp;nbsp;&lt;BR /&gt;can you please be more specific where or what I need to change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I actually should change the currency code and accept payment in USD but merchant account allows only GBP so when I use the c_currency_code line it generate an error. So I remove it and accepting payment in GBP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me how to solve the problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 12:43:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56032#M30850</guid>
      <dc:creator>sourav</dc:creator>
      <dc:date>2016-10-25T12:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56033#M30851</link>
      <description>&lt;PRE&gt;$fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount&lt;STRIKE&gt; . "^"&lt;/STRIKE&gt;, $transactionKey);&lt;/PRE&gt;&lt;P&gt;See above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I placed a line over the part that you need to lose. The "^" is used as a "glue" token to concatenate the different segments of the fingerprint material. Since you don't have anything after amount (this is where you would normally put the currency code) you don't need the last "glue" element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the currency, if you are sending&amp;nbsp;&lt;STRONG&gt;x_currency_code&lt;/STRONG&gt; as part of the payload you have to add it in the fingerprint as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount&amp;nbsp;. "^" . $currencyCode, $transactionKey);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:36:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56033#M30851</guid>
      <dc:creator>martintz0n3v</dc:creator>
      <dc:date>2016-10-25T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56036#M30854</link>
      <description>&lt;P&gt;I have done what and as you said.&lt;/P&gt;&lt;P&gt;But same error has occured as prevous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Transaction Declined&lt;/DIV&gt;&lt;P&gt;An error occurred during processing. Call Merchant Service Provider.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:23:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56036#M30854</guid>
      <dc:creator>sourav</dc:creator>
      <dc:date>2016-10-25T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56037#M30855</link>
      <description>&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;We are experiencing an issue in the sandbox which may be affecting your transaction.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-not-processing-payments-for-a-while-now/m-p/56035#M30853" target="_blank"&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Sandbox-not-processing-payments-for-a-while-now/m-p/56035#M30853&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;​&lt;/FONT&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;Richard&lt;/FONT&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&lt;FONT face="Calibri,Arial,Helvetica,sans-serif"&gt;Developer Community Manager​​&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:54:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56037#M30855</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-10-25T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Declined in SIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56046#M30864</link>
      <description>&lt;P&gt;But I am working on Live Envirnoment.&lt;/P&gt;&lt;P&gt;with the url&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$url = "https://secure.authorize.net/gateway/transact.dll";&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2016 20:54:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Declined-in-SIM-API/m-p/56046#M30864</guid>
      <dc:creator>sourav</dc:creator>
      <dc:date>2016-10-25T20:54:29Z</dc:date>
    </item>
  </channel>
</rss>

