<?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 Silent post passing decline as success in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-post-passing-decline-as-success/m-p/58778#M33393</link>
    <description>&lt;P&gt;Here is my php code which has been working fine for ARB payments when they are successful:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// Get the response code. 1 is success, 2 is decline, 3 is error&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$response_code &lt;/SPAN&gt;&lt;SPAN&gt;= (int)&lt;/SPAN&gt;&lt;SPAN&gt;$_POST&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'x_response_code'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$response_code &lt;/SPAN&gt;&lt;SPAN&gt;== &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;// Approved!&lt;/SPAN&gt;&lt;BR /&gt;..do important stuff here&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, a recent ARB transaction was declined, but the code still ran (i.e. $response_code == 1 when it should have been 2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I miss something?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 01:10:39 GMT</pubDate>
    <dc:creator>AndrewTraub</dc:creator>
    <dc:date>2017-07-12T01:10:39Z</dc:date>
    <item>
      <title>Silent post passing decline as success</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-post-passing-decline-as-success/m-p/58778#M33393</link>
      <description>&lt;P&gt;Here is my php code which has been working fine for ARB payments when they are successful:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// Get the response code. 1 is success, 2 is decline, 3 is error&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$response_code &lt;/SPAN&gt;&lt;SPAN&gt;= (int)&lt;/SPAN&gt;&lt;SPAN&gt;$_POST&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'x_response_code'&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$response_code &lt;/SPAN&gt;&lt;SPAN&gt;== &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;// Approved!&lt;/SPAN&gt;&lt;BR /&gt;..do important stuff here&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, a recent ARB transaction was declined, but the code still ran (i.e. $response_code == 1 when it should have been 2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I miss something?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 01:10:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-post-passing-decline-as-success/m-p/58778#M33393</guid>
      <dc:creator>AndrewTraub</dc:creator>
      <dc:date>2017-07-12T01:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Silent post passing decline as success</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-post-passing-decline-as-success/m-p/58816#M33426</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20287"&gt;@AndrewTraub&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide the entire silent post to review?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:44:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-post-passing-decline-as-success/m-p/58816#M33426</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-07-13T20:44:30Z</dc:date>
    </item>
  </channel>
</rss>

