$options['headers'] = array(
'x-skip-mtls-checking' => 'true',
);
try {
$api = Gerencianet::getInstance($options);
$params = ['chave' => '34646106000189'];
$body = ['webhookUrl' => 'https://olimppi.us/webhook'];
// https://olimppi.us/webhook/pix.php?ignorar=
// https://olimppi.us/webhook/pix.php?ignorar=/pix
$pix = $api->pixConfigWebhook($params, $body);
echo json_encode($pix);
} catch (GerencianetException $e) {
print_r($e->code);
print_r($e->error);
print_r($e->errorDescription);
throw new \Error($e->error);
} catch (\Exception $e) {
throw new \Error($e->getMessage());
}
Termos mais procurados: