-1

Paypal webhooks 向我发送了一个 post 变量,但它的名称是什么?我什么也找不到。

4

3 回答 3

0

发布的变量取决于触发的事件。要实际查看 PayPal 发送的帖子,请按照以下步骤操作:

1. Go to developer.paypal.com--> Dashboard and login . 
2. In left move to "WebHooks Simulator" and put your url you want to receive the post to after selecting the event type and it will show you the data posted after clicking on submit . 

您将看到如下内容:

在此处输入图像描述

于 2015-08-26T12:48:12.673 回答
0
$bodyReceived = file_get_contents('php://input');
于 2016-11-21T19:10:41.837 回答
0

发送 webhook 时,它会发送标头以及有效负载。该文档分布在下面的两个链接之间。没有很好解释的是“资源”字段的实际内容。例如,如果 webhook 用于销售事件类型,则资源的内容与从 GET /v1/payments/sale/ 获取信息相同

第一个链接解释了主要的有效载荷。第二个链接解释了标题。 https://developer.paypal.com/docs/api/#retrieve-a-webhook-event https://developer.paypal.com/docs/integration/direct/rest-webhooks-overview/

于 2015-09-26T01:58:49.703 回答