예제 #1
0
        public Task <RefundResponse> RefundAsync(RefundRequest request)
        {
            var p = ChannelConvertor.ToProvider(request.Channel);
            var c = _channels[p];

            return(c.RefundAsync(request));
        }
예제 #2
0
        public Task <PaymentCallbackResponse> GetPaymentResultAsync(PaymentQueryRequest request)
        {
            var p = ChannelConvertor.ToProvider(request.Channel);
            var c = _channels[p];

            return(c.GetPaymentResultAsync(request));
        }
예제 #3
0
        public Task <PaymentResponse> PayAsync(PaymentRequest request)
        {
            var p = ChannelConvertor.ToProvider(request.Channel);
            var c = _channels[p];

            return(c.PayAsync(request));
        }
예제 #4
0
 public MiunieChannel ConvertChannel(DiscordChannel c)
 => ChannelConvertor.FromDiscordChannel(c);