This is an old revision of the document!
Update labelyourbelongings.com with all new features for merkalt.no and the common platform system.
// Before transferring english instance on common platform, all the needed core modifications should be completed. Then it needed to take decision, how to make integration of instances of merkalt.no, which doesn't use orders recording into DB, and labelyourbelongings.com, which saves orders into DB for Paypal processing. It seems, the best way to resolve this problem is to implement orders saving for merkalt.no instances using MySQL DB. Further, common interface for payment modules should be developed. It will allow to include different payment systems for different site instances without rewriting code for each instance. Including of new payment system with such interface will involve only new payment module writing. And then all remain work with templates and pages scripts could be performed.//
Site labelyourbelonging.com has a significant difference from other instances of merkalt.no. This difference consists in using PayPal payment system. In order to transfer this instance on common merkalt platform several important changes of this platform required.
- All the orders should be saved into DB. This will allow also refuse sessions, so the problem of empty orders will be resolved.
- For used payment systems should be written common interface, and payment processors should be organized as external modules. The purpose of these modules is to assist customer to perform order payment with desired payment system and to complete all needed payment process steps. At this time PayPal (English site) and simple order mail sending (merkalt.no) are used, but in the nearest future CC gateway integration planned. So the system of external payment modules will allow implementing new payment systems faster, because no rewriting existing code will needed. Only one new module writing will be required. Besides it will allow combine on the single platform different instances of merkalt site.
- Payment modules will be linked up by adding correspondent item in xml file with settings of used payment systems. On the basis of this xml file the list of options for payment system selection will be automatically collected. If this xml contents only one registered payment module, no list of options will appeared, and registered payment module will be used by default on order completion.
- Under shopping cart total customer see menu with names of payment systems for selection (like on navnestempel project). Customer select needed payment system option (say PayPal), and the form of customer, billing and shipping data changes depending on setting of module for selected payment system. In other words, the set of required data for payment process will be adjustable. Besides the appearance of submit button could be changed.
- Before payment processing, current order saves into DB, and then all needed payment operation steps. After payment completed, customer will be redirected to “Thank You” page. So the common logic of payment process for customer will not be changed.
