<?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 Back URL PHP Issue in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/37363#M20707</link>
    <description>&lt;P&gt;I have currently set up sitlent post back url. &amp;nbsp;I have updated my script to include emails to know when the post back happens. &amp;nbsp;I'm getting successful emails indicating authorize is posting back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the issue, i'm getting is that the POST is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one issue that could be causing this is that i have a query parameter in the url:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mydomain.com/recurring.php?member=1" target="_blank"&gt;https://mydomain.com/recurring.php?member=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would that cause an issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample script that i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$admin_cnxn = mysql_connect ('localhost', 'test', 'test');&lt;BR /&gt;$church_cnxn = $admin_cnxn;&lt;BR /&gt;$admin_db = mysql_select_db ('churchdb_admin');&lt;/P&gt;&lt;P&gt;require_once ('../admin/includes/wcc_functions.php');&lt;/P&gt;&lt;P&gt;$church_dir = $_GET['church'];&lt;/P&gt;&lt;P&gt;$sql = 'SELECT * FROM churches WHERE Directory = ' . GetSQLValueString($church_dir, 'text');&lt;/P&gt;&lt;P&gt;$church_query = mysql_query($sql, $admin_cnxn);&lt;/P&gt;&lt;P&gt;// get the raw POST data&lt;BR /&gt;$rawData = file_get_contents("php://input");&lt;/P&gt;&lt;P&gt;$to = 'test@test.com';&lt;BR /&gt;$subject = 'Authorize Recurring' . (!empty($church_dir) ? ' - ' . $church_dir : 'No Church');&lt;BR /&gt;$message = ' Data&amp;amp;colon;' . ($rawData);&lt;/P&gt;&lt;P&gt;$message .= ' Get: ';&lt;BR /&gt;foreach ($_GET as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$message .= ' POST: ';&lt;BR /&gt;foreach ($_POST as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$message .= ' REQUEST: ';&lt;BR /&gt;foreach ($_REQUEST as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$headers = 'From: no-reply@test.com' . "\r\n" .&lt;BR /&gt;'X-Mailer: PHP/' . phpversion();&lt;/P&gt;&lt;P&gt;mail($to, $subject . " Initial", $message, $headers);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(!empty($church_query) &amp;amp;&amp;amp; mysql_num_rows($church_query) &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;$church = mysql_fetch_assoc($church_query);&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . " Before - Church " . $church['Name'], 'Church Found', $headers);&lt;/P&gt;&lt;P&gt;if(mysql_select_db($church['DBName']) &amp;amp;&amp;amp; !empty($_REQUEST)) {&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . " Church - Selected " . $church['Name'], 'Church Found', $headers);&lt;BR /&gt;&lt;BR /&gt;$subscription_id = (int) $_POST['x_subscription_id'];&lt;/P&gt;&lt;P&gt;if(!empty($subscription_id)) {&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], "Subscription Id" . $subscription_id, $headers);&lt;/P&gt;&lt;P&gt;$response_code = (int) $_POST['x_response_code'];&lt;BR /&gt;$reason_code = (int) $_POST['x_response_reason_code'];&lt;/P&gt;&lt;P&gt;if ($response_code == 1) {&lt;/P&gt;&lt;P&gt;$authorization_code = $_POST['x_auth_code'];&lt;BR /&gt;$transaction_id = $_POST['x_trans_id'];&lt;BR /&gt;$customer_id = $_POST['x_cust_id'];&lt;/P&gt;&lt;P&gt;$previous_donation = mysql_query('SELECT * FROM donation_recurrings WHERE RecurringCancelled = 0 AND MemberId = ' . GetSQLValueString($customer_id, 'text') . ' AND RecurID = ' . GetSQLValueString($subscription_id, 'text'));&lt;/P&gt;&lt;P&gt;if(!empty($previous_donation) &amp;amp;&amp;amp; mysql_num_rows($previous_donation) &amp;gt; 0) {&lt;BR /&gt;$prev_donation = mysql_fetch_assoc($previous_donation);&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], 'Previous Donation ' . $subscription_id . ' ' . $previous_donation, $headers);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if(!empty($prev_donation)) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], "After " . $add_donation . " - " . $subscription_id . ' - ' . $previous_donation . ' ' . $sql, $headers);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2013 07:56:58 GMT</pubDate>
    <dc:creator>dchankhour</dc:creator>
    <dc:date>2013-12-12T07:56:58Z</dc:date>
    <item>
      <title>Silent Post Back URL PHP Issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/37363#M20707</link>
      <description>&lt;P&gt;I have currently set up sitlent post back url. &amp;nbsp;I have updated my script to include emails to know when the post back happens. &amp;nbsp;I'm getting successful emails indicating authorize is posting back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the issue, i'm getting is that the POST is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one issue that could be causing this is that i have a query parameter in the url:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mydomain.com/recurring.php?member=1" target="_blank"&gt;https://mydomain.com/recurring.php?member=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would that cause an issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample script that i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$admin_cnxn = mysql_connect ('localhost', 'test', 'test');&lt;BR /&gt;$church_cnxn = $admin_cnxn;&lt;BR /&gt;$admin_db = mysql_select_db ('churchdb_admin');&lt;/P&gt;&lt;P&gt;require_once ('../admin/includes/wcc_functions.php');&lt;/P&gt;&lt;P&gt;$church_dir = $_GET['church'];&lt;/P&gt;&lt;P&gt;$sql = 'SELECT * FROM churches WHERE Directory = ' . GetSQLValueString($church_dir, 'text');&lt;/P&gt;&lt;P&gt;$church_query = mysql_query($sql, $admin_cnxn);&lt;/P&gt;&lt;P&gt;// get the raw POST data&lt;BR /&gt;$rawData = file_get_contents("php://input");&lt;/P&gt;&lt;P&gt;$to = 'test@test.com';&lt;BR /&gt;$subject = 'Authorize Recurring' . (!empty($church_dir) ? ' - ' . $church_dir : 'No Church');&lt;BR /&gt;$message = ' Data&amp;amp;colon;' . ($rawData);&lt;/P&gt;&lt;P&gt;$message .= ' Get: ';&lt;BR /&gt;foreach ($_GET as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$message .= ' POST: ';&lt;BR /&gt;foreach ($_POST as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$message .= ' REQUEST: ';&lt;BR /&gt;foreach ($_REQUEST as $key =&amp;gt; $value) {&lt;BR /&gt;$message .= $key . ' -&amp;gt; ' . $value . '&amp;lt;br&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$headers = 'From: no-reply@test.com' . "\r\n" .&lt;BR /&gt;'X-Mailer: PHP/' . phpversion();&lt;/P&gt;&lt;P&gt;mail($to, $subject . " Initial", $message, $headers);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(!empty($church_query) &amp;amp;&amp;amp; mysql_num_rows($church_query) &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;$church = mysql_fetch_assoc($church_query);&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . " Before - Church " . $church['Name'], 'Church Found', $headers);&lt;/P&gt;&lt;P&gt;if(mysql_select_db($church['DBName']) &amp;amp;&amp;amp; !empty($_REQUEST)) {&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . " Church - Selected " . $church['Name'], 'Church Found', $headers);&lt;BR /&gt;&lt;BR /&gt;$subscription_id = (int) $_POST['x_subscription_id'];&lt;/P&gt;&lt;P&gt;if(!empty($subscription_id)) {&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], "Subscription Id" . $subscription_id, $headers);&lt;/P&gt;&lt;P&gt;$response_code = (int) $_POST['x_response_code'];&lt;BR /&gt;$reason_code = (int) $_POST['x_response_reason_code'];&lt;/P&gt;&lt;P&gt;if ($response_code == 1) {&lt;/P&gt;&lt;P&gt;$authorization_code = $_POST['x_auth_code'];&lt;BR /&gt;$transaction_id = $_POST['x_trans_id'];&lt;BR /&gt;$customer_id = $_POST['x_cust_id'];&lt;/P&gt;&lt;P&gt;$previous_donation = mysql_query('SELECT * FROM donation_recurrings WHERE RecurringCancelled = 0 AND MemberId = ' . GetSQLValueString($customer_id, 'text') . ' AND RecurID = ' . GetSQLValueString($subscription_id, 'text'));&lt;/P&gt;&lt;P&gt;if(!empty($previous_donation) &amp;amp;&amp;amp; mysql_num_rows($previous_donation) &amp;gt; 0) {&lt;BR /&gt;$prev_donation = mysql_fetch_assoc($previous_donation);&lt;BR /&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], 'Previous Donation ' . $subscription_id . ' ' . $previous_donation, $headers);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if(!empty($prev_donation)) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;mail($to, $subject . $church['Name'], "After " . $add_donation . " - " . $subscription_id . ' - ' . $previous_donation . ' ' . $sql, $headers);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 07:56:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/37363#M20707</guid>
      <dc:creator>dchankhour</dc:creator>
      <dc:date>2013-12-12T07:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Post Back URL PHP Issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/37437#M20733</link>
      <description>&lt;P&gt;I'm afraid that I don't have a real answer for you. I can confirm that the query string won't affect post data, I set up a quick test myself just to doublecheck., but I can't tell you why your script isn't capturing any data.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2013 23:10:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/37437#M20733</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2013-12-16T23:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Post Back URL PHP Issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/38039#M20833</link>
      <description>&lt;P&gt;Do you happen to have SNI - SSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-URL-Not-Working/m-p/35407#M19789" target="_blank"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Silent-Post-URL-Not-Working/m-p/35407#M19789&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be a known bug, if so. Thats the only reason I can think why POST is empty. Since the request never comes at all.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 21:29:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/38039#M20833</guid>
      <dc:creator>iBotPeaches</dc:creator>
      <dc:date>2013-12-26T21:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Silent Post Back URL PHP Issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/38507#M21059</link>
      <description>&lt;P&gt;If this is a known bug, are you faimilar with any work around this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 23:25:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Silent-Post-Back-URL-PHP-Issue/m-p/38507#M21059</guid>
      <dc:creator>dchankhour</dc:creator>
      <dc:date>2014-01-18T23:25:29Z</dc:date>
    </item>
  </channel>
</rss>

