Ecco il nuovo codice :
e il log e' :codice:public function payout_webook() { $this->paypal_lib->log_ipn_test('########################## NEW PAYOUT LISTENER############################## '); //write on log file $request = json_decode(file_get_contents('php://input')); $this->paypal_lib->log_ipn_test($request); if(isset($_GET)){ foreach ($_GET as $v) { $this->paypal_lib->log_ipn_test($v); } } if(isset($_POST)){ foreach ($_POST as $v) { $this->paypal_lib->log_ipn_test($v); } } if(isset($_REQUEST)){ foreach ($_REQUEST as $v) { $this->paypal_lib->log_ipn_test($v); } } //TODO GET PAYOUT DETAIL }
L'assistenza paypal dice che Paypal sends HTTP POST notification messages to your webhook listener URLcodice:[26/06/2020 7:05 PM] - ########################## NEW PAYOUT LISTENER############################## [26/06/2020 7:05 PM] - [26/06/2020 7:05 PM] - ########################## NEW PAYOUT LISTENER############################## [26/06/2020 7:05 PM] - [26/06/2020 7:05 PM] - ########################## NEW PAYOUT LISTENER############################## [26/06/2020 7:05 PM] -
https://developer.paypal.com/docs/ap...webhooks/rest/
Ma se cosi' fosse non riceverei dati via POST ? Oltretutto se vado ngli event di paypal developer vedo Payout batch completed succesfully