Posts Tagged ‘Payments’
I have seen couple of post in MSDN forums asking help to extend payment methods in commerce server. In CS2007, the process is simple but in CS2009 and if you are using SharePoint extensibility kit then the process is much more complex but can be easily achievable. Note that current extensibility kit only supports credit card payment type and to make cheque payment work, we have to do changes in the respective
The basic steps for this are:
- Create the underlying SQL Server data store to store “Cheque” details (preferable create in XXX_transaction table). This involves creating the tables in the data store.
- Create Cheque class with the list of properties to hold Cheque information.
- Configure the assembly information (where Cheque class exist) in Web config.
- Configure the Fields information in Order Mapping xml file.
- Configure the Fields information in Order Pipeline.
- Execute OrderMapping tool, which creates required stored procedures (as output file) based on the configuration files (order mapping, web.config and order pipeline) . Execute the generated stored procedures in data store (in XXX_transaction table).
- Create Cheque class which extends entity class. This class is used by CS2009 Foundation classes .
- Create Translators and PaymentResponseBuilders (Operation Sequence Component)
- Create further mappings for Commerce Entities in the MetadataDefinitions.xml file
- Modify ChannelConfiguration file and create entries for newly created Translators and Responsebuilders.
- Modify the extensibility code (Create C# helper classes etc…) wherever required. Note that current extensibility kit only supports credit card payment type and to make cheque payment work, we have to do changes in the respective files which I didn’t mention here.
- Above steps helps us to store cheque values in database and the process of creating business process is same in commerce server 2007 and 2009.
- Create a new pipeline component named “ChequePayment” and implement your business process.
- Open customer and order manager and create a new payment type – “Cheque”.
Hope this high level approach gave birds view of what to do and if you need in depth knowledge, feel free to contact me. Similarly I have blogged the steps involved in line item.
http://microsoftblog.co.in/commerceserver/steps-involved-in-extended-commerce-server-2009-systems/
If you like this post, please click on our sponsor advertisement.
