0
我已经实施IPN处理程序(copt从代码项目中粘贴它)第一次在其中一个项目中。Paypal IPN处理程序 - 如何知道谁的交易发生
在用户的问题可以注册到我的网站有一些电子邮件地址,然后同时支付他可以用一些不同的电子邮件地址
而且IPN处理程序请求变量给其所支付的电子邮件地址。我应该如何找出哪个用户付了钱。
if (strResponse == "VERIFIED")
{
//check the payment_status is Completed
//check that txn_id has not been previously processed
//check that receiver_email is your Primary PayPal email
//check that payment_amount/payment_currency are correct
//process payment
string payerEmail = Request.Form["payer_email"];
string paymentStatus = Request.Form["payment_status"];
string receiverEmail = Request.Form["receiver_email"];
string amount = Request.Form["mc_gross"];
}
解决方案:
通过一些addiditonal可能是在支付处理页面的用户ID,并假设它会在IPN处理程序返回。
或者要求用户在付款前输入paypal电子邮件地址。 (不是感觉很好)
在这方面的任何帮助表示赞赏