Configuring the SimpleOffline plug-in
Use the SimpleOffline plug-in if you want to process payment transactions manually. HCL Commerce tracks the payment status of the order.
About this task
Procedure
- Map the plug-in to the payment system and payment configuration.
For example:
<PaymentSystemName name="OfflineCard" > <Mapping paymentConfigurationId="default" PluginName="SimpleOffline" > </Mapping> </PaymentSystemName>
- In a text editor or XML editor, open your copy of the PaymentSystemPluginMapping XML file.
- Specify the payment system name, payment configuration
ID, plug-in name, and any specific plug-in properties that should
be used for that payment system name mapping.
Since a plug-in can be associated with more than one payment system name, you can specify properties that are unique to a particular payment system name. For example, PaymentSystemName ABC can use property XXX, and PaymentSystemName DEF can use property YYY even though the same plug-in is used for both.
When the payment system name is used, the set of properties defined in the PaymentSystemPluginMapping.xml file is applied. These properties are different from the plug-in properties specified in the deployment descriptor. The properties specified in the deployment descriptor apply to the plug-in itself and remain constant in memory as the plug-in is used, regardless of the payment system name being used.
- Save the file.
- Configure payment methods.
- In a text editor or XML editor, open the PaymentMethodConfigurations XML file which is in the following
directory:
- workspace_dir/WC/xml/config/payments/edp/groups/default
workspace_dir/wc/xml/config/payments/edp/groups/default
- Specify a configuration for the payment method. Supply
values for the following parameters:
- payment method
- paymentRule
- paymentSystemName
- systemEditable
- humanEditable
- refundAllowed
- minimumAmount
- maximumAmount
- priority
- dependentCreditRequired
- Save the file.
- In a text editor or XML editor, open the PaymentMethodConfigurations XML file which is in the following
directory:
- Configure refund methods.
- In a text editor or XML editor, open the RefundMethodConfigurations
XML file which is in the following directory:
- workspace_dir/WC/xml/config/payments/edp/groups/default
workspace_dir/wc/xml/config/payments/edp/groups/default
- Specify a configuration for the refund method. Supply
values for the following parameters:
- refund method
- paymentSystemName
- Save the file.
- In a text editor or XML editor, open the RefundMethodConfigurations
XML file which is in the following directory:
- Configure pending state.Open the SimpleOfflinePlugin.xml file. Set values for the PaymentConfiguration and keepPendingStatus.
- Optional: If you require the SimpleOffline plug-in to support a new payment method, you must include the corresponding JSP snippets in the storefront page to collect the required protocol data for the new payment method. No JSP snippets are required by the SimpleOffline plug-in if you are using the predefined payment methods.
- Update for v9.
- Update for v9.