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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

lektran
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"));
     }