Example #1
0
        static void ComAdapter()
        {
            IPayPalPayment payment = new PayoneerAdapter(new Payoneer());

            payment.PayPalPayment();
            payment.PayPalReceive();

            payment = new MercadoPagoAdapter(new MercadoPago());
            payment.PayPalPayment();
            payment.PayPalReceive();
        }
Example #2
0
        static void Main(string[] args)
        {
            //var payment = new PayPal();

            var payment = new MercadoPagoAdapter(new MercadoPago());

            payment.PayPalPayment();
            payment.PayPalReceive();

            Console.ReadLine();
        }
Example #3
0
        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();
        }
Example #4
0
        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();
        }