예제 #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));
        }
예제 #2
0
 public PaypalOrder(ShoppingCart shoppingCart, PaypalInfo payPalInfo) : base(shoppingCart)
 {
     PayPalInfo = PayPalInfo;
 }