Technote

(FAQ)
Add or removing a payment method to a store
How do you add or remove a payment method from the drop down list on your store's Order Summary page?


Answer

In general, payment methods are defined in the POLICY table. Here is an example of what an entry in the POLICY table looks like:
select policy_id, policyname, storeent_id, properties from policy where storeent_id=10001 and policyname='AMEX'

POLICY_ID POLICYNAME STOREENT_ID PROPERTIES
10002 AMEX 10001 attrPageName= StandardVisa&paymentConfigurationId= default&display=true&compatibleMode= false

For more information regarding the identifiers in the properties field, please see section "Relationship with POLICY table" on the following page:
http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.payments.developer.doc/refs/rpydeppol.htm

  1. How do I remove payment methods from the drop down list on the OrderDisplay page?

    In order to remove a payment method from the list, you can set the display identifier for the policy of interest to false. For example, you can run the following query to make the AMEX payment method not display on the store page:

    update policy set properties='attrPageName=StandardAmex&paymentConfigurationId=default&
    display=false&compatibleMode=false' where policyname='AMEX'

  2. How do I add a new payment method to the drop down list?

    Adding a payment method is more complicated. You will need to:

    1. Add a new entry to the POLICY and POLICYDESC tables for your new payment method.

    2. Register the following three implementation classes for your new policy in the POLICYCMD table:
      com.ibm.commerce.payment.actions.commands.DoPaymentActionsPolicyCmdImpl
      com.ibm.commerce.payment.actions.commands.EditPaymentInstructionPolicyCmdImpl
      com.ibm.commerce.payment.actions.commands.QueryPaymentsInfoPolicyCmdImpl

    3. Map your new payment method to a payment configuration (PaymentMappings.xml) and map the payment configuration to the payment system (PaymentMethodConfigurations.xml) that in turn maps to the payment plug-in you want to use with your new payment method.

      The following tutorial in the Information Center goes through an example of modifying an existing payment method configuration and adding a new payment method:
      http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=/com.ibm.commerce.payments.events.doc/tutorial/tpp0.htm

 

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21292210