我正在使用 PayPal 沙盒解决方案。我通过以下方式发送了此请求:
string redirecturl = "";
redirecturl += "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + ConfigurationManager.AppSettings["paypalemail"].ToString();
redirecturl += "&first_name=Liton";
redirecturl += "&city=Dhaka";
redirecturl += "&state=Baridhara";
redirecturl += "&item_name=Recharge";
redirecturl += "&amount=" + money;
redirecturl += "&shipping=0";
redirecturl += "&handling=0";
redirecturl += "&tax=0";
redirecturl += "&quantity=1";
redirecturl += "¤cy=USD";
redirecturl += "&return=" + ConfigurationManager.AppSettings["SuccessURL"].ToString();
redirecturl += "&cancel_return=" + ConfigurationManager.AppSettings["FailedURL"].ToString();
Response.Redirect(redirecturl);
成功付款后,我无法获得 Paypal 返回值。如果成功或失败,我如何获得返回值?
tranref = Request.QueryString["tx"].ToString();
transtat = Request.QueryString["st"].ToString();
tranamt = Request.QueryString["amt"].ToString();
trancur = Request.QueryString["cc"].ToString();
我试图以这种方式在成功页面中获得价值,但所有价值都是空的。请帮助我捕捉返回值。