public function onPayboxIpnResponse(PayboxResponseEvent $event)
    {
        $path = sprintf('%s/../data/%s', $this->rootDir, date('Y\/m\/d\/'));
        $this->filesystem->mkdir($path);

        $content = sprintf('Signature verification : %s%s', $event->isVerified() ? 'OK' : 'KO', PHP_EOL);
        foreach ($event->getData() as $key => $value) {
            $content .= sprintf("%s:%s%s", $key, $value, PHP_EOL);
        }

        file_put_contents(
            sprintf('%s%s.txt', $path, time()),
            $content
        );
    }
public function onPayboxIpnResponse(PayboxResponseEvent $event)
    {
        $path = sprintf('%s/../data/%s', $this->rootDir, date('Y\/m\/d\/'));
        $this->filesystem->mkdir($path);

        $content = sprintf('Signature verification : %s%s', $event->isVerified() ? 'OK' : 'KO', PHP_EOL);
        foreach ($event->getData() as $key => $value) {
            $content .= sprintf("%s:%s%s", $key, $value, PHP_EOL);
        }

        file_put_contents(
            sprintf('%s%s.txt', $path, time()),
            $content
        );
    }
public function onPayboxIpnResponse ( PayboxResponseEvent $ event ) { $ path = sprintf ( '%s/../data/%s' , $ this -> rootDir , date ( 'Y\/m\/d\/' ) ) ; $ this -> filesystem -> mkdir ( $ path ) ; $ content = sprintf ( 'Signature verification : %s%s' , $ event -> isVerified ( ) ? 'OK' : 'KO' , PHP_EOL ) ; foreach ( $ event -> getData ( ) as $ key => $ value ) { $ content .= sprintf ( "%s:%s%s" , $ key , $ value , PHP_EOL ) ; } file_put_contents ( sprintf ( '%s%s.txt' , $ path , time ( ) ) , $ content ) ; }
Creates a txt file containing all parameters for each IPN.

@param PayboxResponseEvent $event
Creates a txt file containing all parameters for each IPN .