Knowledge BasePayment Methods and PSP Gateway Introduction

Payment Methods and PSP Gateway Introduction

Dependencies

To make use of the payment functionality, the 'Sana.Commerce.Payment.dll' will have to be included in your project.  Besides the payment library itself, the following depending assemblies will be also required:
  • Sana.Commerce.Business
  • Sana.Core
  • System.Configuration
You will also have to register the following classes in unity:
 
ObjectManager.RegisterType<IPaymentMethod, PaymentMethod>();
ObjectManager.RegisterType<IPaymentMethodCountry, PaymentMethodCountry>();           
ObjectManager.RegisterType<Sana.Commerce.Payment.IPaymentLog, Sana.Commerce.Payment.PaymentLog>();
ObjectManager.RegisterType<Sana.Commerce.Payment.IPaymentService, Sana.Commerce.Payment.PaymentService>();            ObjectManager.RegisterType<Sana.Commerce.Payment.IPaymentModuleCreator, Sana.Commerce.Payment.Configuration.ConfigurationPaymentModuleCreator>();
ObjectManager.RegisterType<Sana.Commerce.Payment.IPaymentPageHelper, Sana.Commerce.Payment.PaymentPageHelper>();            ObjectManager.RegisterType<Sana.Commerce.Payment.IPaymentUtils, Sana.Commerce.Payment.PaymentUtils>();
 
After adding these dependencies the payment library can be used freely.
 
Knowledge BasePayment Methods and PSP Gateway Introduction