فهرست منبع

[示例] 支付宝-条码支付 删除 NotifyUrl (当面付异步通知仅用于扫码支付,条码支付不存在此通知)

Roc 7 سال پیش
والد
کامیت
97cc7ec804

+ 0 - 1
samples/WebApplicationSample/Controllers/AlipayController.cs

@@ -71,7 +71,6 @@ namespace WebApplicationSample.Controllers
             };
             var req = new AlipayTradePayRequest();
             req.SetBizModel(model);
-            req.SetNotifyUrl(viewModel.NotifyUrl);
 
             var response = await _client.ExecuteAsync(req);
             ViewData["response"] = response.Body;

+ 0 - 3
samples/WebApplicationSample/Models/AlipayViewModel.cs

@@ -47,9 +47,6 @@ namespace WebApplicationSample.Models
         [Required]
         [Display(Name = "total_amount")]
         public string TotalAmount { get; set; }
-
-        [Display(Name = "notify_url")]
-        public string NotifyUrl { get; set; }
     }
 
     public class AlipayTradeAppPayViewModel

+ 0 - 4
samples/WebApplicationSample/Views/Alipay/Pay.cshtml

@@ -37,10 +37,6 @@
                 <label asp-for="TotalAmount"></label>
                 <input type="text" class="form-control" asp-for="TotalAmount" value="0.01" />
             </div>
-            <div class="form-group">
-                <label asp-for="NotifyUrl"></label>
-                <input type="text" class="form-control" asp-for="NotifyUrl" value="http://*/notify/alipay/precreate" />
-            </div>
             <button type="submit" class="btn btn-primary">提交请求</button>
         </form>
         <hr />