static void ComAdapter() { IPayPalPayment payment = new PayoneerAdapter(new Payoneer()); payment.PayPalPayment(); payment.PayPalReceive(); payment = new MercadoPagoAdapter(new MercadoPago()); payment.PayPalPayment(); payment.PayPalReceive(); }
static void Main(string[] args) { //var payment = new PayPal(); var payment = new MercadoPagoAdapter(new MercadoPago()); payment.PayPalPayment(); payment.PayPalReceive(); Console.ReadLine(); }
static void Main(string[] args) { IPayPalPayment payment = new PayonnerAdapter(new Payonner()); payment.PayPalPayment(); payment.PayPalReceive(); IPayPalPayment payment1 = new MercadoPagoAdapter(new MercadoPago()); payment1.PayPalPayment(); payment1.PayPalReceive(); Console.ReadLine(); }
static void Main(string[] args) { //PayPal payment = new PayPal(); //Payonner payment = new Payonner(); //IPayPalPayment payment = new PayonnerAdapter(new Payonner()); IPayPalPayment payment = new MercadoPagoAdapter(new MercadoPago()); payment.PayPalPayment(); payment.PayPalReceive(); //payment.SendPayment(); //payment.ReceivePayment(); Console.ReadLine(); }