<?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 How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help! in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15052#M8618</link>
    <description>&lt;P&gt;Unfortunately I am under a deadline today.&amp;nbsp; Your help would be invaluable.&lt;/P&gt;&lt;P&gt;I used the Authorize.net examples (PHP) SIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call to Authorize is&lt;/P&gt;&lt;P&gt;AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence,$relay_response_url,$api_login_id, $transaction_key);&lt;/P&gt;&lt;P&gt;and I have the customer's member/ID number in "$fp_sequence"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The return from Authorize uses&amp;nbsp;&amp;nbsp; $response = new AuthorizeNetSIM($api_login_id, $md5_setting);&lt;/P&gt;&lt;P&gt;And from that call the example code pulls out data values like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response-&amp;gt;transaction_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response-&amp;gt;response_reason_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&amp;nbsp; what is the&amp;nbsp; "fp_sequence" value&amp;nbsp;referenced as when at this stage?&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; $response-&amp;gt;fp_sequence&amp;nbsp; but it comes back null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to pull out the fp_sequence value in the return and use the existing code/library calls that were used in Authorize's examples.&amp;nbsp; Help!&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2011 16:14:46 GMT</pubDate>
    <dc:creator>JayP</dc:creator>
    <dc:date>2011-07-19T16:14:46Z</dc:date>
    <item>
      <title>How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15052#M8618</link>
      <description>&lt;P&gt;Unfortunately I am under a deadline today.&amp;nbsp; Your help would be invaluable.&lt;/P&gt;&lt;P&gt;I used the Authorize.net examples (PHP) SIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call to Authorize is&lt;/P&gt;&lt;P&gt;AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence,$relay_response_url,$api_login_id, $transaction_key);&lt;/P&gt;&lt;P&gt;and I have the customer's member/ID number in "$fp_sequence"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The return from Authorize uses&amp;nbsp;&amp;nbsp; $response = new AuthorizeNetSIM($api_login_id, $md5_setting);&lt;/P&gt;&lt;P&gt;And from that call the example code pulls out data values like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response-&amp;gt;transaction_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response-&amp;gt;response_reason_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&amp;nbsp; what is the&amp;nbsp; "fp_sequence" value&amp;nbsp;referenced as when at this stage?&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; $response-&amp;gt;fp_sequence&amp;nbsp; but it comes back null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to pull out the fp_sequence value in the return and use the existing code/library calls that were used in Authorize's examples.&amp;nbsp; Help!&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 16:14:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15052#M8618</guid>
      <dc:creator>JayP</dc:creator>
      <dc:date>2011-07-19T16:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15060#M8622</link>
      <description>&lt;P&gt;If you are able to use $response-&amp;gt;transaction_id﻿&amp;nbsp; to get the value of the transaction_id,&amp;nbsp; but get no value with&amp;nbsp;$response-&amp;gt;fp_sequence,&amp;nbsp; it's possible that AuthNet isn't passing that back to you at all. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example docs, I see a line that reads:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$redirect_url .= '?response_code=1&amp;amp;transaction_id=' .
$response-&amp;gt;transaction_id;&lt;/PRE&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;That appears to be telling AuthNet not only where to send the customer when they are done,&amp;nbsp; but also what information to return to you at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe if you change it to this:&lt;/P&gt;&lt;PRE&gt;$redirect_url .= '?response_code=1&amp;amp;transaction_id=' .
$response-&amp;gt;transaction_id .&lt;BR /&gt;'\&amp;amp;fp_sequence=' .&lt;BR /&gt;$response-&amp;gt;fp_sequence;&lt;/PRE&gt;&lt;P&gt;﻿&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mabye that will do the trick.&amp;nbsp;&amp;nbsp;&amp;nbsp; The only line in that code is the one that reads '\&amp;amp;fp_sequence='.&lt;/P&gt;&lt;P&gt;I'm not sure if you have to put a backslash before the ampersand or not..&amp;nbsp; I think you do in order to escape it, but maybe not (PhP noob here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that doesn't do it, and there is still a possibility that AuthNet actually is passing the fp_sequence value back to you;&lt;/P&gt;&lt;P&gt;I've only been using PhP for a couple days, and am unsure as to the specific use of each function that could pull out a variable value,&amp;nbsp;&amp;nbsp; but maybe one of these will work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;htmlentities($_GET['fp_sequence')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿htmlspecialchars($_POST["fp_sequence﻿"])﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;urlencode($_POST["fp_sequence"])﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can give them a try and see if they work (no promises hehe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHeis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 16:41:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15060#M8622</guid>
      <dc:creator>WHeisenberg</dc:creator>
      <dc:date>2011-07-19T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15066#M8625</link>
      <description>&lt;P&gt;Thank you WHeis,&lt;/P&gt;&lt;P&gt;I appreciate what you've put together.&amp;nbsp; Your examples..everything.&amp;nbsp; There is the two step process after it comes back from Authorize - the first step is the relay_response program where I was trying to disect the $response object and pull out fp_sequence.&amp;nbsp; If I can get that value at that point in the cycle that would resolve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did just try doing a&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var_dump(get_object_vars($response))&amp;nbsp;&amp;nbsp; command inside the relay_response program and I found that at that point&amp;nbsp; $response object has a LOT of data fields but none are/contain the&amp;nbsp; fp_sequence value.&amp;nbsp; They do include the purchaser's name, address... 67 different fields in fact.&amp;nbsp;&amp;nbsp; But none being fp_response or holding the value I put into that field when I first called Authorize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll also try dumping all the $_POST variables as you suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I appreciate your help on this...it seems we are very close...&lt;/P&gt;&lt;P&gt;I'm also&amp;nbsp;going to try seeing if I can tweak the SDK form and include a hiddent field...maybe that will come back as a parameter in the $response object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you WHeis&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 17:16:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15066#M8625</guid>
      <dc:creator>JayP</dc:creator>
      <dc:date>2011-07-19T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15076#M8630</link>
      <description>&lt;P&gt;If you really need to get that fp_sequence back from Authnet and they aren't sending it,&amp;nbsp; you could try setting up a merchant defined field in the resulting form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set it to whatever you want to call it,&amp;nbsp; make it a hidden field, and populate it with the value of fp_sequence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Section 3 -&amp;gt; Customizing the Hosted Payment Form -&amp;gt; Merchant Defined Fields is wherr to get the info on that (&lt;A href="http://developer.authorize.net/guides/SIM/" target="_blank"&gt;http://developer.authorize.net/guides/SIM/&lt;/A&gt;﻿)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the very least,&amp;nbsp; you can use that to ignore fp_sequence completely because whatever the value in fp_sequence actually is,&amp;nbsp; you can set it to come back to you with some other name.. I.E.&amp;nbsp;&amp;nbsp; x_my_fp_sequence_copy = fp_sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, instead of looking for the value of fp_sequence (which is null), you get the 'real value' by pulling x_my_fp_sequence_copy (or whatever you named it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:)&lt;/P&gt;&lt;P&gt;WHeis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:07:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15076#M8630</guid>
      <dc:creator>WHeisenberg</dc:creator>
      <dc:date>2011-07-19T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve fp_sequence from response = AuthorizeNetSIM(login,md5) call - emergency help!</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15086#M8635</link>
      <description>&lt;P&gt;Thank you Wheis.&amp;nbsp; That is what I ended up doing and it's working!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically I edited the&amp;nbsp;&amp;nbsp; anet_php_sdk/lib/AuthorizeNetDPM.php file...went down to where the form is that is asking for customer's address and I added a hidden field.&amp;nbsp; Specifically I added the type=hidden field named&amp;nbsp; "x_hiddenj" and had its value='$fp_sequence'&amp;nbsp;&amp;nbsp; As I reviewed the var dump coming from the reply side it did list&amp;nbsp;it amongst the 67 or so variables.&amp;nbsp; The last twist was that I had to reference it as&amp;nbsp; $response-&amp;gt;hiddenj&amp;nbsp;&amp;nbsp; rather than $response-&amp;gt;x_hiddenj.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that I can reference the "member #" that I passed to Authorize on return...now I can look up that member in my database and update their database status and look up their email and send them an ack email.&amp;nbsp; Back on track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you WHeis for all your help!!!!!!&amp;nbsp;&amp;nbsp; Hopefully our email discussion will help others in the future needing the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 18:29:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-retrieve-fp-sequence-from-response-AuthorizeNetSIM-login/m-p/15086#M8635</guid>
      <dc:creator>JayP</dc:creator>
      <dc:date>2011-07-19T18:29:18Z</dc:date>
    </item>
  </channel>
</rss>

