/// <summary> /// 跳转到支付宝收银台 /// </summary> /// <param name="request">手机网站支付参数</param> public async Task RedirectAsync(AlipayWapPayRequest request) { var result = await PayAsync(request); var response = WebUtil.Response; response.ContentType = "text/html;charset=utf-8"; await response.WriteAsync(result); }
/// <summary> /// 支付,跳转到支付宝收银台 /// </summary> /// <param name="request">支付宝手机网站支付参数</param> /// <returns></returns> public async Task RedirectAsync(AlipayWapPayRequest request) { var result = await PayAsync(request); var response = Web.Response; var config = await ConfigProvider.GetConfigAsync(); response.Redirect($"{config.GatewayUrl}?{result}"); }
/// <summary> /// 支付 /// </summary> /// <param name="request">手机网站支付参数</param> public async Task <string> PayAsync(AlipayWapPayRequest request) { var result = await PayAsync(request.ToParam()); return(result.Result); }
public async Task RedirectAsync(AlipayWapPayRequest param) { var service = Factory.CreateAlipayWapPayService(); await service.RedirectAsync(param); }
public async Task <string> BuildHtml(AlipayWapPayRequest param) { var service = Factory.CreateAlipayWapPayService(); return(await service.PayAsync(param)); }