PayPal集成在asp.net项目中 [英] Paypal integration in asp.net project

查看:66
本文介绍了PayPal集成在asp.net项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我将Paypal集成到我的Web应用程序中,可以正常工作,但是我想在完成Paypal流程后发送电子邮件.

Hi,
I am integrate Paypal for payment in my web application it will work good but i want to send email after complete Paypal process.But in between in will go in exception i am using this code for Paypal:

public void Post()
       {
           System.Web.HttpContext.Current.Response.Clear();

           System.Web.HttpContext.Current.Response.Write("<html><head>");

           System.Web.HttpContext.Current.Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName));
           System.Web.HttpContext.Current.Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, Url));
           for (int i = 0; i < Inputs.Keys.Count; i++)

           {

               System.Web.HttpContext.Current.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", Inputs.Keys[i], Inputs[Inputs.Keys[i]]));
           }
           System.Web.HttpContext.Current.Response.Write("</form>");
           System.Web.HttpContext.Current.Response.Write("</body></html>");
           System.Web.HttpContext.Current.Response.End();//From here it will go in exception
       }


我要在此过程后编写电子邮件代码,因为我想在完成Paypal过程后发送电子邮件.
帮我解决这个问题.


I am write my email code after this process because i want to send email after complete Paypal process.
Help me to solve this.

推荐答案

您是否藏匿了此页面?关于此主题的文章很多:
http://www.codeproject.com/search.aspx? q = paypal& x = 0& y = 0& sbo = kw [
Did you seach this page? There are lot of articles about this subject:
http://www.codeproject.com/search.aspx?q=paypal&x=0&y=0&sbo=kw[^]


这篇关于PayPal集成在asp.net项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆