Adding a new payment business policy

To add a new payment policy for a store group, do the following:

  1. Assemble the required information to add your payment policy: payment policy ID, type ID, name, store group ID, properties, language ID, descriptions, and business command class.
  2. Using the following statement as your guide, run the SQL statements against your WebSphere Commerce database:
    insert into policy( policy_id, policyname, policytype_id, storeent_id, properties )
    values( 9091, 'CustomOffline_COD', 'Payment', -1,
    'cassetteName=CustomOffline&profileName=WC51_CustomOffline_COD&offlineMethod=COD' )
    
    insert into policydesc( policy_id, language_id, Description, longDescription )
    values( 9091, -1, 'Cash On Delivery', 'Cash On Delivery (CustomOffline)' )
    
    insert into policycmd( policy_id, businessCmdClass )
    values( 9091, 'com.ibm.commerce.payment.commands.DoPaymentPMCmdImpl' )
    
    insert into policycmd( policy_id, businessCmdClass )
    values( 9091, 'com.ibm.commerce.payment.commands.CheckPaymentAcceptPMCmdImpl' )
    
    insert into policycmd( policy_id, businessCmdClass )
    values( 9091, 'com.ibm.commerce.payment.commands.DoCancelPMCmdImpl' )
    
    insert into policycmd( policy_id, businessCmdClass )
    values( 9091, 'com.ibm.commerce.payment.commands.DoDepositPMCmdImpl' )
    
    insert into policycmd( policy_id, businessCmdClass )
    values( 9091, 'com.ibm.commerce.payment.commands.DoRefundPMCmdImpl' )
    

Notes:

You can define a new payment policy for a new cassette, and through the profileName property, specify the Cashier profile you defined for that cassette. You can also use the attrPageName property to specify the name of a JSP file segment that other WebSphere Commerce components could include to render an HTML form that prompts the user for payment information required by the cassette. Refer to defined payment business policy properties for additional information on the profileName and attrPageName properties, and other properties that can be specified with the payment business policy.