I have been working on a requirement to implement payment gateway integration for my web application I wanted to implement a generic solution were it is possible to plugin multiple payment providers. Currently there are two providers ePay and DIBS . Below is the solution i have come up.Declare an interface IPaymentBasic this contains basic fields that are expected to be common in most of the providers.public interface IPaymentBasic{    string AcceptUrl { get; set; }    string CancelUrl { get; set; }    string CallBackUrl { get; set; }    CurrencyCode Currency { get; set; }    long Amount { get; set; }    string Merchant { get; set; }    string MerchantNumber { get; set; }    string WindowState { get; set; }    string OrderId { get; set; }}Then i have declared an interface for each payment provider interface IDibs : IPaymentBasic{    string BillingAddress { get; set; }    string BillingAddress2 { get; set; }    string BillingFirstName { get; set; }    string BillingLastName { get; set; }    string BillingPostalCode { get; set; }    string BillingPostalPlace { get; set; }    string Cardholder_Name { get; set; }    string Cardholder_Address { get; set; }    string Cardholder_Zipcode { get; set; }    string Email { get; set; }    string Md5Key { get; set; }    string Lang { get; set; }    string OrderText { get; set; }}I have declared another interface for IEPayinterface IEPay : IPaymentBasic{    Language Language { get; set; }    string OwnReceipt { get; set; }    string OrderText { get; set; }    string DeclineText { get; set; }}I then have a class say DIbs which implements the IDibs interface which contains all the values required for dibs payment gateway.I then have a custom web control which takes an class IPaymentBasic as  parameter which i then read through using Reflection and add them as hidden fields creating a form tag .Is my approach towards it proper ? Is there any other way / better way i could solve this in addressing a generic soltuion to this ?
Multiple payment gateway implementation solution
c#;interface;e commerce