Knowledge BasePayment Methods and PSP Gateway

Payment Methods and PSP Gateway

Sana Commerce 8.2
Your provider

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>();
ObjectManager.RegisterType<Sana.Commerce.Payment.Pipeline.IOrderContext, Sana.Commerce.Payment.Pipeline.OrderContext>();
ObjectManager.RegisterType<Sana.Commerce.Payment.Pipeline.IPaymentContext, Sana.Commerce.Payment.PaymentContext>();
After adding these dependencies the payment library can be used freely. 
Knowledge BasePayment Methods and PSP Gateway