Example #1
0
        public static PaymentContext UseAlipay(this PaymentContext context, AlipayConfig configuration)
        {
            var payment = new Alipayment(configuration);

            context.SetPayment(payment);
            return(context);
        }
Example #2
0
        public static PaymentContext Alipay(AlipayConfig configuration)
        {
            var        context = new PaymentContext();
            Alipayment payment = new Alipayment(configuration);

            context.SetPayment(payment);
            return(context);
        }