示例#1
0
        public void CreateRefund(GatewayType gatewayType)
        {
            var gateway = gateways.Get(gatewayType);
            var paymentSetting = new PaymentSetting(gateway);

            var refund = new Refund();
            refund.OutRefundNo = "000000000000000";
            paymentSetting.BuildRefund(refund);
            paymentSetting.BuildRefundQuery(refund);
        }
示例#2
0
        public void Refund()
        {
            PaymentSetting querySetting = new PaymentSetting(GatewayType.WeChatPayment);

            querySetting.Merchant.AppId   = "wx000000000000000";
            querySetting.Merchant.Partner = "000000000000000";
            querySetting.Merchant.Key     = "0000000000000000000000000000000000000000";
            if (querySetting.CanRefund)
            {
                var refund = new Refund();
                refund.OutRefundNo = "000000000000000";
                querySetting.BuildRefund(refund);
                querySetting.BuildRefundQuery(refund);
            }
        }