Page 1 of 2

Error in DPM with authorize.net

Posted: Mon May 20, 2013 6:19 pm
by jonjon
Hi,

After we post the transaction with authorize.net using relay response...here is what we got:

-----
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.
------

Looking at the logs, here is what we got:
------------
[ERROR] 23:01:40 BroadleafAuthorizeNetController - The order could not be determined from the Authorize.net relay response (params: []). NOTE: The transaction may have completed successfully. Check your application keys and hash.
-----------

We check keys and hash ...they are all correct.

Please, help.

Thanks.

Re: Error in DPM with authorize.net

Posted: Mon May 20, 2013 8:29 pm
by phillipuniverse
What version of Broadleaf and what version of Authorize.net?

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 10:38 am
by jonjon
Thanks for replying.

Broadleaf: 2.0.2-GA
Authorize.net: 2.0.0.SNAPSHOT

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 10:43 am
by phillipuniverse
Try with authorize.net version 2.0.2-GA.

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 10:50 am
by phillipuniverse
FYI we have a module compatibility chart here: http://docs.broadleafcommerce.org/current/Compatibility

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 11:02 am
by jonjon
Thanks...

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 7:51 pm
by jonjon
Just wondering if where we could find the authorizenet module 2.0.2 snapshot.

From Snapshot and public repository, I only see 2.0.0, 2.1.0 and 2.2.0 snapshot.

Thanks

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 7:56 pm
by jonjon
As I ran blc.2.0.0 with authorizenet 2.0.0 snapshot....I got an error:

The database got restored from backup file...I guess there is some mismatch with schema index and solr...?

---------
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.broadleafcommerce.common.exception.ServiceException: Could not perform search
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)

org.broadleafcommerce.common.exception.ServiceException: Could not perform search
org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.findProducts(SolrSearchServiceImpl.java:293)
org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl.findProductsByCategory(SolrSearchServiceImpl.java:22

org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException: undefined field: "null"
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:155)
------------
---------

Re: Error in DPM with authorize.net

Posted: Tue May 21, 2013 9:55 pm
by jonjon
I did use:

Broadleaf: 2.0.2-GA
Authorize.net: 2.0.2-GA.

authorizenet.merchant.md5.key= (same as the MD5-Hash value set in authorize.net account).

Got the same error :
-----------------
[ERROR] 02:48:13 BroadleafAuthorizeNetController - The order could not be determined from the Authorize.net relay response (params: []). NOTE: The transaction may have completed successfully. Check your application keys and hash.
-----------------

Re: Error in DPM with authorize.net

Posted: Wed May 22, 2013 1:02 pm
by jonjon
As I parse the reply value from relay response (request object)..here are value...

----------------
CONTENT LENGTH : -1
RESPONSE_CODE : null
REMOTE HOST : 66.185.185.5
MAP SIZE : 0
--------------
Code:
System.out.println("CONTENT LENGTH : "+request.getContentLength());
System.out.println("RESPONSE_CODE : "+request.getParameter("x_response_code"));
System.out.println("REMOTE HOST : "+request.getRemoteAddr());

Map map = request.getParameterMap();

System.out.println("MAP SIZE : "+map.size());
-----------------------------

Is Authorize.net returning with no key/value pairs from relay response...?