public static PaymentContext UseAlipay(this PaymentContext context, AlipayConfig configuration) { var payment = new Alipayment(configuration); context.SetPayment(payment); return(context); }
public static PaymentContext Alipay(AlipayConfig configuration) { var context = new PaymentContext(); Alipayment payment = new Alipayment(configuration); context.SetPayment(payment); return(context); }