我正在使用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();
我尝试使用以下方式在成功页面获取值,但所有值都为空。请帮助我捕获返回值。