
Originariamente inviata da
Alhazred
Stai controllando in entrambi i casi che sia POST, GET non lo stai controllando.
HO sbagliato a postare , ora è corretto :
Codice PHP:
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 ( ! $this->input->get()) {
$this->paypal_lib->log_ipn_test('Missing GET Data');
}
if ( ! $this->input->post()) {
$this->paypal_lib->log_ipn_test('Missing POST Data');
}
//TODO GET PAYOUT DETAIL
}
Questo il log :
codice:
[26/06/2020 3:24 PM] - ########################## NEW PAYOUT LISTENER##############################
[26/06/2020 3:24 PM] -
[26/06/2020 3:24 PM] - Missing GET Data
[26/06/2020 3:24 PM] - Missing POST Data
[26/06/2020 3:24 PM] - ########################## NEW PAYOUT LISTENER##############################
[26/06/2020 3:24 PM] -
[26/06/2020 3:24 PM] - Missing GET Data
[26/06/2020 3:24 PM] - Missing POST Data
[26/06/2020 3:24 PM] - ########################## NEW PAYOUT LISTENER##############################
[26/06/2020 3:24 PM] -
[26/06/2020 3:24 PM] - Missing GET Data
[26/06/2020 3:24 PM] - Missing POST Data