我正在 ASP.NET 应用程序中进行简单的 Paypal 支付集成,我尝试为成功和取消构建返回查询字符串,但它不起作用,因为我在查询字符串中发送了多个参数
string returnUrl = ConfigurationManager.AppSettings["PayPalSandBoxUrl"] + "&business=" + email;
returnUrl += "&amount= 100";
returnUrl += "&item_name=Invoice to somebody";
// the problem goes in following params
returnUrl += "&return=" + ConfigurationManager.AppSettings["Domain"] + "Payment.aspx?param1=" + param1 + "¶m2=" + param2 ;
returnUrl += "&cancel_return=" + ConfigurationManager.AppSettings["Domain"] + "Payment.aspx?cancel=true¶m1=" + param1;
我认为贝宝请求参数和返回查询参数之间有些混淆,有什么解决方案吗?