Technote (troubleshooting)
Problem(Abstract)
You might receive a 'Payment parameter xxxxxxx is missing' error after migrating to WebSphere Commerce Version 7.0.
Symptom
After migrating from WebSphere Commerce Version 6.0 to WebSphere Commerce Version 7.0, the following error message (or similar) might occur during checkout:
[10/10/12 11:33:20:816 EDT] 000000c2 CommerceSrvr A AEDPPIEditCtrlCmdImpl processEDPResults CMN1112E: The payment system encounters an error when updating the payment instructions of order 886,002. Payment parameter cc_brand is missing.
The WC_EDP trace component provides us with a stack trace:
[10/10/12 11:33:20:806 EDT] 000000c2 WC_EDP 3 -61e42272:13a4b4bd612:-7ffe EditCmdImpl.setupAndCreatePaymentInstruction(pdpOrderData, pi) createPIActionResult is
Action Results
---------------------------------------------
status: Failure
amount: null
avs code: -1
Plug-in exception:
...
...
[stack trace]
com.ibm.commerce.payments.plugin.InvalidPaymentInstructionException: Payment parameter cc_brand is missing.
at com.ibm.commerce.payments.plugin.simpleoffline.beans.SimpleOfflineBean.checkPaymentInstruction(SimpleOfflineBean.java:377)
at com.ibm.commerce.payments.plugin.simpleoffline.beans.EJSRemoteStatelessSimpleOffline_5a2b3ccc.checkPaymentInstruction(EJSRemoteStatelessSimpleOffline_5a2b3ccc.java:372)
at com.ibm.commerce.payments.plugin.simpleoffline.beans._SimpleOffline_Stub.checkPaymentInstruction(_SimpleOffline_Stub.java:437)
at com.ibm.commerce.payments.plugincontroller.plugin.PluginAdapter_V1.checkPaymentInstruction(PluginAdapter_V1.java:1021)
at com.ibm.commerce.payments.plugincontroller.PluginController.createPaymentInstruction(PluginController.java:1034)
...
...
Cause
In WebSphere Commerce Version 6.0, when PIAddCmd is called with a blank field for PPCExtData, an encrypted value is used in its place. This however was changed in WebSphere Commerce Version 7.0 to throw an exception in the case any required parameter returns null.
Resolving the problem
If the parameter is not being used, resolve the issue by removing the applicable property (in this case 'cc_brand') from your payment plug-in configuration file (in this case SimpleOfflinePlugin.xml) and the plug-in deployment descriptor file (PluginDeployment.xml).
<WC_eardir>/xml/config/payments/ppc/plugins/<plugin_dir>
<WC_installdir>\wc.modules\workspace\WC\xml\config\payments\ppc\plugins\<plugin_dir>\
<WC_installdir>\workspace\WC\xml\config\payments\ppc\plugins\<plugin_dir>\
Ensure that you restart the server after making the change.
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.