Paypal sandbox-integration mit asp.net c#

Ich bin mit der PayPal-sandbox-Lösung.Ich habe diesen Antrag Balg Weg:

   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 += "&currency=USD";
                redirecturl += "&return=" + ConfigurationManager.AppSettings["SuccessURL"].ToString();
                redirecturl += "&cancel_return=" + ConfigurationManager.AppSettings["FailedURL"].ToString();    
                Response.Redirect(redirecturl);

Nach der erfolgreichen Zahlung, die ich nicht bekommen, Paypal-Wert zurückgeben. Wie bekomme ich Rückgabewert bei Erfolg oder scheitern?

        tranref = Request.QueryString["tx"].ToString();
        transtat = Request.QueryString["st"].ToString();
        tranamt = Request.QueryString["amt"].ToString();
        trancur = Request.QueryString["cc"].ToString();

Ich versuche den Wert in der "Success" - Seite auf diese Weise, aber alle mit dem Wert null sind.Bitte helfen Sie mir, zu fangen Rückgabewert.

Schreibe einen Kommentar