/** * Description: 统一收单交易支付接口 * Summary: 统一收单交易支付接口 */ public PayTradeResponse PayTrade(PayTradeRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); Dictionary <string, string> headers = new Dictionary <string, string>() { }; return(PayTradeEx(request, headers, runtime)); }
/** * Description: 统一收单交易支付接口 * Summary: 统一收单交易支付接口 */ public async Task <PayTradeResponse> PayTradeAsync(PayTradeRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); Dictionary <string, string> headers = new Dictionary <string, string>() { }; return(await PayTradeExAsync(request, headers, runtime)); }
public TradeOrder(PayTradeRequest model, MerchantStoreChannelModel merchStore, string tradeNo) : this((BaseTradeRequest)model, merchStore) { model.ResetPayNotifyUrl(merchStore.PayNotifyUrl); TradeNo = tradeNo; OutTradeNo = model.Out_Trade_No; TotalAmount = model.Total_Amount; SourceType = merchStore.SourceType; ApiNo = merchStore.ApiNo; State = (short)PayState.NotPay; PayNotifyUrl = model.Pay_Notify_Url; //Fee = PayRules.CalcFee(model.TotalAmount, merchStore); //OrderType3 = short.Parse(model.OrderType3); TradeType = (short)QctTradeType.Income; FeeType = (short)PayFeeType.RMB; BuyerMobile = ""; GoodsName = string.IsNullOrWhiteSpace(model.Goods_Name) ? "购物消费" : model.Goods_Name; GoodsDesc = model.Goods_Desc; }
/** * Description: 统一收单交易支付接口 * Summary: 统一收单交易支付接口 */ public async Task <PayTradeResponse> PayTradeExAsync(PayTradeRequest request, Dictionary <string, string> headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <PayTradeResponse>(await DoRequestAsync("1.0", "antcloud.industry.trade.pay", "HTTPS", "POST", "/gateway.do", request.ToMap(), headers, runtime))); }