Esempio n. 1
0
        public AlipayF2FRefundResult tradeRefund(AlipayTradeRefundContentBuilder builder)
        {
            AlipayF2FRefundResult refundResult = new AlipayF2FRefundResult();

            try
            {
                AlipayTradeRefundRequest refundRequest = new AlipayTradeRefundRequest();
                refundRequest.BizContent = builder.BuildJson();
                refundResult.response    = client.Execute(refundRequest);
                return(refundResult);
            }
            catch
            {
                refundResult.response = null;
                return(refundResult);
            }
        }
Esempio n. 2
0
        public async Task <AlipayF2FRefundResult> TradeRefundAsync(AlipayTradeRefundContentBuilder builder)
        {
            var refundResult = new AlipayF2FRefundResult();

            try
            {
                AlipayTradeRefundRequest refundRequest = new AlipayTradeRefundRequest();
                refundRequest.BizContent = builder.BuildJson();
                refundResult.response    = await client.ExecuteAsync(refundRequest);

                return(refundResult);
            }
            catch
            {
                refundResult.response = null;
                return(refundResult);
            }
        }