C# 如何将webhook与paypal退货请求集成

C# 如何将webhook与paypal退货请求集成,c#,asp.net,paypal,webhooks,paypal-webhooks,C#,Asp.net,Paypal,Webhooks,Paypal Webhooks,嗨,我开发了一个项目,我已经实现了Paypal退房支付。 当用户成功付款时,paypal返回到我的网站,查询字符串作为成功交易id传递,然后在我将该交易id存储到我的数据库后,这表明付款成功完成 任何在用户支付款项前几天,但在交易中id不在数据库中,因此由于该应用程序显示其未支付款项 我对此进行了搜索,发现我们需要实现web钩子来解决这个问题。 有人能建议如何在我的代码中实现web钩子吗 我的贝宝代码如下 Response.Write("<form action='" + Configur

嗨,我开发了一个项目,我已经实现了Paypal退房支付。 当用户成功付款时,paypal返回到我的网站,查询字符串作为成功交易id传递,然后在我将该交易id存储到我的数据库后,这表明付款成功完成

任何在用户支付款项前几天,但在交易中id不在数据库中,因此由于该应用程序显示其未支付款项

我对此进行了搜索,发现我们需要实现web钩子来解决这个问题。 有人能建议如何在我的代码中实现web钩子吗

我的贝宝代码如下

Response.Write("<form action='" + ConfigurationManager.AppSettings["PayPalURL"].ToString() + "' method='post' name='buyCredits' id='buyCredits'>");
Response.Write("<input type='hidden' name='cmd' value='_xclick'>");
Response.Write("<input type='hidden' name='business' value='" + ConfigurationManager.AppSettings["BusinessURL"].ToString() + "'>");
Response.Write("<input type='hidden' name='currency_code' value='USD'>");
Response.Write("<input type='hidden' name='custom' value='"+lblorderno.Text+"'>");
Response.Write("<input type='hidden' name='item_name' value='" + ItemName + "'>");
Response.Write("<input type='hidden' name='item_number' value='" + Items + "'>");
Response.Write("<input type='hidden' name='amount'  id='amount'  value='" + Convert.ToString(Math.Round(price,2)) + "'>");
Response.Write("<input type='hidden' name='return' value='" + ConfigurationManager.AppSettings["SuccessURL"].ToString() + Convert.ToString(lblorderno.Text) + "'>");
Response.Write("<input type='hidden' name='cancel_return' value='" + ConfigurationManager.AppSettings["CancelURL"].ToString() + Convert.ToString(lblorderno.Text) + "'>");
Response.Write("</form>");
Response.Write(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
回答。写(“”);
我从来没有使用过webhook,所以有人能打电话来帮助我了解如何在paypal中集成webhook吗


我也知道我会因此得到负面评价。

大家好,在我的情况下,IPN为我获得了实际代码,请查看以下链接:


webhook只是一个端点,当工作完成时,它会收到一篇文章。@john我们需要在pay pal端、我的应用程序端或两者上集成此设置吗?