<?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 DPM driving me nuts! (Unable to verify MD5 value) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-driving-me-nuts-Unable-to-verify-MD5-value/m-p/56176#M30984</link>
    <description>&lt;P&gt;Hello All - I am trying to integrate using DPM. &amp;nbsp;The code is simple. &amp;nbsp;Capture cc detail (HTML Form) and send it to Authorized.net for auth and capture, then get a response back and generate a receipt for the ustomer. &amp;nbsp;The authorization and charge was fine - the card transaction was approved. &amp;nbsp;Executing the relay url was fine, the response got to my server. &amp;nbsp;The trouble was with the result object. &amp;nbsp;Maybe the following code snipets may help (I am using JSP/HTML btw):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the request side:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;String apiLoginId = "REDACTED";
String transactionKey = " REDACTED ";
String relayResponseUrl = "http:// REDACTED.html";
String amount = ""+totalAmnt;

 Fingerprint fingerprint = Fingerprint.createFingerprint(
	  apiLoginId,
	  transactionKey,
	  1234567890,  // Random sequence used for creating the fingerprint
	  amount);

 long x_fp_sequence = fingerprint.getSequence();
 long x_fp_timestamp = fingerprint.getTimeStamp();
 String x_fp_hash = fingerprint.getFingerprintHash();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the response side:&lt;/P&gt;&lt;PRE&gt;String apiLoginId = "REDACTED";
	String MD5HashKey = "I think!";
	
	net.authorize.sim.Result result = net.authorize.sim.Result.createResult(apiLoginId, MD5HashKey, request.getParameterMap());    
	
int returnCode = result.getResponseCode().getCode();
int responseCode = result.getReasonResponseCode().getResponseReasonCode();	
	String status = result.isApproved() ? "Approved" : "NOT Approved";
	java.util.Map rp = result.getResponseMap();&lt;/PRE&gt;&lt;P&gt;When I printed out the paraments of the result object I get:&lt;/P&gt;&lt;PRE&gt;16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 1.0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2 - returnCode=0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2 - responseCode=0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2.2: result is NOT NULL
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 3: status=NOT Approved&amp;lt;
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 4
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 5: x_cust_id=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6: x_description=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.1: x_invoice_num=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.2: x_MD5_Hash1=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.3: x_MD5_Hash1=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.4: x_tax=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.5: x_amount=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.6: x_first_name=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 7: x_response_reason_text=Unable to verify MD5 value.
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 8: dispBasePrice=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 9: dispDiscAmnt=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 10: dispNetCost=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 11: studentFirstName=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 12: studentLastName=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 12.1: studentEmail=null&lt;/PRE&gt;&lt;P&gt;I search this forum on the response_reason_text: "Unable to verify MD5 value" but I got nothing. &amp;nbsp;I set my MD5 in the code the same value as I set it on Authorized.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The funny thing is that the transaction was approved and I got an email receipt ok. &amp;nbsp;I saw all the details I would expect in the email, but creating the result object using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;net.authorize.sim.Result.createResult(apiLoginId, MD5HashKey, request.getParameterMap())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;seems to be the problem. &amp;nbsp;Can any one tell me what I am doing wrong? &amp;nbsp;You input is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Nov 2016 13:05:29 GMT</pubDate>
    <dc:creator>test_ngs</dc:creator>
    <dc:date>2016-11-12T13:05:29Z</dc:date>
    <item>
      <title>DPM driving me nuts! (Unable to verify MD5 value)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-driving-me-nuts-Unable-to-verify-MD5-value/m-p/56176#M30984</link>
      <description>&lt;P&gt;Hello All - I am trying to integrate using DPM. &amp;nbsp;The code is simple. &amp;nbsp;Capture cc detail (HTML Form) and send it to Authorized.net for auth and capture, then get a response back and generate a receipt for the ustomer. &amp;nbsp;The authorization and charge was fine - the card transaction was approved. &amp;nbsp;Executing the relay url was fine, the response got to my server. &amp;nbsp;The trouble was with the result object. &amp;nbsp;Maybe the following code snipets may help (I am using JSP/HTML btw):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the request side:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;String apiLoginId = "REDACTED";
String transactionKey = " REDACTED ";
String relayResponseUrl = "http:// REDACTED.html";
String amount = ""+totalAmnt;

 Fingerprint fingerprint = Fingerprint.createFingerprint(
	  apiLoginId,
	  transactionKey,
	  1234567890,  // Random sequence used for creating the fingerprint
	  amount);

 long x_fp_sequence = fingerprint.getSequence();
 long x_fp_timestamp = fingerprint.getTimeStamp();
 String x_fp_hash = fingerprint.getFingerprintHash();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the response side:&lt;/P&gt;&lt;PRE&gt;String apiLoginId = "REDACTED";
	String MD5HashKey = "I think!";
	
	net.authorize.sim.Result result = net.authorize.sim.Result.createResult(apiLoginId, MD5HashKey, request.getParameterMap());    
	
int returnCode = result.getResponseCode().getCode();
int responseCode = result.getReasonResponseCode().getResponseReasonCode();	
	String status = result.isApproved() ? "Approved" : "NOT Approved";
	java.util.Map rp = result.getResponseMap();&lt;/PRE&gt;&lt;P&gt;When I printed out the paraments of the result object I get:&lt;/P&gt;&lt;PRE&gt;16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 1.0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2 - returnCode=0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2 - responseCode=0
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 2.2: result is NOT NULL
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 3: status=NOT Approved&amp;lt;
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 4
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 5: x_cust_id=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6: x_description=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.1: x_invoice_num=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.2: x_MD5_Hash1=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.3: x_MD5_Hash1=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.4: x_tax=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.5: x_amount=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 6.6: x_first_name=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 7: x_response_reason_text=Unable to verify MD5 value.
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 8: dispBasePrice=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 9: dispDiscAmnt=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 10: dispNetCost=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 11: studentFirstName=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 12: studentLastName=null
16/11/12 06:41:14 [IN ENROLMENT COMPLETE] HERE 12.1: studentEmail=null&lt;/PRE&gt;&lt;P&gt;I search this forum on the response_reason_text: "Unable to verify MD5 value" but I got nothing. &amp;nbsp;I set my MD5 in the code the same value as I set it on Authorized.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The funny thing is that the transaction was approved and I got an email receipt ok. &amp;nbsp;I saw all the details I would expect in the email, but creating the result object using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;net.authorize.sim.Result.createResult(apiLoginId, MD5HashKey, request.getParameterMap())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;seems to be the problem. &amp;nbsp;Can any one tell me what I am doing wrong? &amp;nbsp;You input is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 13:05:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-driving-me-nuts-Unable-to-verify-MD5-value/m-p/56176#M30984</guid>
      <dc:creator>test_ngs</dc:creator>
      <dc:date>2016-11-12T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: DPM driving me nuts! (Unable to verify MD5 value)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-driving-me-nuts-Unable-to-verify-MD5-value/m-p/56185#M30993</link>
      <description>&lt;P&gt;Anyone has a solution to this? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 20:35:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM-driving-me-nuts-Unable-to-verify-MD5-value/m-p/56185#M30993</guid>
      <dc:creator>test_ngs</dc:creator>
      <dc:date>2016-11-14T20:35:52Z</dc:date>
    </item>
  </channel>
</rss>

