0

I'm trying to integrate a CakePHP website with Mercadopago (payment gateway), and when Mercadopago sends a POST containing the payment data, CakePHP doesn't show the POST, and I'm completely sure that the data was sent.

I tried to set the security level to low and it doesn't works.

Is there any Cake "behaviour" that cleans the POST data?

4

1 回答 1

0

您不应该使用 $_POST 变量。相反,您应该使用:

$this->request->data

Cake 将在那里收到所有发布的数据。

尝试:

debug($this->request->data);
于 2016-04-22T23:25:31.237 回答