You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/05/26 03:46:03 UTC

svn commit: r778548 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java

Author: lektran
Date: Tue May 26 01:46:03 2009
New Revision: 778548

URL: http://svn.apache.org/viewvc?rev=778548&view=rev
Log:
Set authRefNum earlier so that it can be overwritten if there is a communication failure

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java?rev=778548&r1=778547&r2=778548&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.java Tue May 26 01:46:03 2009
@@ -400,6 +400,7 @@
             Debug.logError(e, "Unable to parse response code; not a number!", module);
         }
 
+        result.put("authRefNum", parameters.get("PNREF"));
         if (codeInt == 0 && avsCheckOkay && cvv2CheckOkay) {
             result.put("authResult", Boolean.TRUE);
             result.put("authCode", parameters.get("AUTHCODE"));
@@ -426,7 +427,6 @@
         }
         result.put("cvCode", cvvCode);
         result.put("avsCode", avsCode);
-        result.put("authRefNum", parameters.get("PNREF"));
         result.put("authFlag", parameters.get("RESULT"));
         result.put("authMessage", parameters.get("RESPMSG"));
     }