Esempio n. 1
0
        public static async Task <PaypalOrder> CheckoutWithCreditCard(this ShoppingCart shoppingCart, PaypalInfo paypalInfo, string discountCode)
        {
            await Task.Delay(3000); // simulate pappal info verification

            return(new PaypalOrder(shoppingCart, paypalInfo));
        }
Esempio n. 2
0
 public PaypalOrder(ShoppingCart shoppingCart, PaypalInfo payPalInfo) : base(shoppingCart)
 {
     PayPalInfo = PayPalInfo;
 }