<?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 My script is running several times, and I don't know why in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/My-script-is-running-several-times-and-I-don-t-know-why/m-p/88742#M55920</link>
    <description>&lt;P&gt;I store payment information in a PCI compliant database, and wrote a script to process transactions monthly. This has worked properly for several years, but in the last several months when I run the script it tries to process every card 3 times!&lt;/P&gt;&lt;P&gt;Luckily, the Auth.net system properly blocks the 2 duplicates! But I can't figure out why my script is trying to run them more than once.&lt;/P&gt;&lt;P&gt;I use this format:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;require_once 'anet_php_sdk/AuthorizeNet.php';
$transaction = new AuthorizeNetAIM("$api_id", "$trans_key");

$fields = [
  'foo' =&amp;gt; 'bar'
];

$transaction-&amp;gt;setFields($fields);
$response = $transaction-&amp;gt;authorizeOnly();&lt;/LI-CODE&gt;&lt;P&gt;Since I built this so long ago, I'm rusty on how to test it.&lt;/P&gt;&lt;P&gt;First question, did something change with Auth.net that could have caused this to start happening?&lt;/P&gt;&lt;P&gt;If not, can I simply set &lt;EM&gt;$transaction-&amp;gt;setSandbox(true);&lt;/EM&gt; before &lt;EM&gt;$fields = [];&lt;/EM&gt; , and then run the script to see what's happening without the card owner seeing anything on their end?&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2024 06:56:33 GMT</pubDate>
    <dc:creator>jwcarlton</dc:creator>
    <dc:date>2024-02-03T06:56:33Z</dc:date>
    <item>
      <title>My script is running several times, and I don't know why</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/My-script-is-running-several-times-and-I-don-t-know-why/m-p/88742#M55920</link>
      <description>&lt;P&gt;I store payment information in a PCI compliant database, and wrote a script to process transactions monthly. This has worked properly for several years, but in the last several months when I run the script it tries to process every card 3 times!&lt;/P&gt;&lt;P&gt;Luckily, the Auth.net system properly blocks the 2 duplicates! But I can't figure out why my script is trying to run them more than once.&lt;/P&gt;&lt;P&gt;I use this format:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;require_once 'anet_php_sdk/AuthorizeNet.php';
$transaction = new AuthorizeNetAIM("$api_id", "$trans_key");

$fields = [
  'foo' =&amp;gt; 'bar'
];

$transaction-&amp;gt;setFields($fields);
$response = $transaction-&amp;gt;authorizeOnly();&lt;/LI-CODE&gt;&lt;P&gt;Since I built this so long ago, I'm rusty on how to test it.&lt;/P&gt;&lt;P&gt;First question, did something change with Auth.net that could have caused this to start happening?&lt;/P&gt;&lt;P&gt;If not, can I simply set &lt;EM&gt;$transaction-&amp;gt;setSandbox(true);&lt;/EM&gt; before &lt;EM&gt;$fields = [];&lt;/EM&gt; , and then run the script to see what's happening without the card owner seeing anything on their end?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 06:56:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/My-script-is-running-several-times-and-I-don-t-know-why/m-p/88742#M55920</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2024-02-03T06:56:33Z</dc:date>
    </item>
  </channel>
</rss>

