public static PaymentContext UseTenpay(this PaymentContext context, TenpayConfig configuration) { var payment = new Tenpayment(configuration); context.SetPayment(payment); return(context); }
public static PaymentContext Tenpay(TenpayConfig configuration) { var context = new PaymentContext(); var payment = new Tenpayment(configuration); context.SetPayment(payment); return(context); }