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); }
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); } }