Example #1
0
        static void Main(string[] args)
        {
            //PayPal payment = new PayPal();
            //Payonner payment = new Payonner();
            IPayPalPayment payment = new PayonnerAdapter(new Payonner());

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

            //payment.SendPayment();
            //payment.ReceivePayment();

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