Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>REMOVED A BUNCH OF STUFF B/C IT WAS FOR AIM METHOD</h1> <p>check the history of my answer if you want it</p> <h1>EDIT</h1> <p>Have a field named <code>x_tax</code></p> <p>AFTER THIS LINE</p> <pre><code>$('.statetax-placeholder').html(data.statetax); </code></pre> <p>ADD THIS</p> <pre><code>$('input[name=x_tax]').val("Tax1&lt;|&gt;state tax&lt;|&gt;"+data.statetax); </code></pre> <p>from the bottom of page 28 of the SIM Guide: <a href="http://www.authorize.net/support/SIM_guide.pdf" rel="nofollow">http://www.authorize.net/support/SIM_guide.pdf</a></p> <blockquote> <p>ADDITIONAL SHIPPING INFORMATION (Level 2 Data) Tax (x_tax) Value: The valid tax amount OR delimited tax information Format: When submitting delimited tax information, values must be delimited by a bracketed pipe &lt;|> Notes: The tax amount charged OR when submitting this information by means of the HTML Form POST, delimited tax information including the sales tax name, description, and amount is also allowed.  tax item name&lt;|>  tax description&lt;|>  tax amount Format: The dollar sign ($) is not allowed when submitting delimited information. Note: The total amount of the transaction in x_amount must include this amount. Example: state tax&lt;|>0.0625"></p> </blockquote> <h1>ANOTHER EDIT</h1> <p>On the php side generate the fingerprint in the ajax call (PHP side):</p> <pre><code>if( phpversion() &gt;= '5.1.2' ) { $fingerprint = hash_hmac("md5", $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey); } else { $fingerprint = bin2hex(mhash(MHASH_MD5, $loginID . "^" . $sequence . "^" . $timeStamp . "^" . $amount . "^", $transactionKey)); } $results = array( 'products' =&gt; $products, 'statetax' =&gt; $tax, 'total' =&gt; $total, 'fingerprint' =&gt; $fingerprint // Pass the fingerprint ); $json = json_encode($results); echo $json; </code></pre> <p>On successful Ajax:</p> <pre><code>// Tax amount $('input[name=x_tax]').val("Tax1&lt;|&gt;state tax&lt;|&gt;"+data.statetax); // Total amount $('input[name=x_amount]').val(data.total); // use the new Fingerprint $('input[name=x_fp_hash]').val(data.fingerprint); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload