cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DPM driving me nuts! (Unable to verify MD5 value)

Hello All - I am trying to integrate using DPM.  The code is simple.  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.  The authorization and charge was fine - the card transaction was approved.  Executing the relay url was fine, the response got to my server.  The trouble was with the result object.  Maybe the following code snipets may help (I am using JSP/HTML btw):

 

On the request side:

 

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();

 

On the response side:

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();

When I printed out the paraments of the result object I get:

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<
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

I search this forum on the response_reason_text: "Unable to verify MD5 value" but I got nothing.  I set my MD5 in the code the same value as I set it on Authorized.net

 

The funny thing is that the transaction was approved and I got an email receipt ok.  I saw all the details I would expect in the email, but creating the result object using 

net.authorize.sim.Result.createResult(apiLoginId, MD5HashKey, request.getParameterMap())

 seems to be the problem.  Can any one tell me what I am doing wrong?  You input is greatly appreciated.

 

Thanks.

test_ngs
Member
1 REPLY 1

Anyone has a solution to this? Thanks.

test_ngs
Member