lexik / LexikPayboxBundle

LexikPayboxBundle eases the implementation of the Paybox payment system
MIT License
40 stars 47 forks source link

Identifiant parameter ? #77

Open Karhal opened 8 years ago

Karhal commented 8 years ago

Hi and thank you for this bundle.

Payments work fine but I have some trouble with cancellations. Don't we need to send the 'identifiant' value ? As the doc says this parameter is required to get a command cancellation and actually we send the login value instead. Without it Paybox does not seem to authorize this operation.

// LexikPayboxBundle/Paybox/System/Cancellation/Request.php #63
protected function initParameters()
    {
        $this->setParameter('VERSION',     '001');
        $this->setParameter('TYPE',        '001');
        $this->setParameter('SITE',        $this->globals['site']);
        $this->setParameter('MACH',        sprintf('%03d', $this->globals['rank']));
        $this->setParameter('IDENTIFIANT', $this->globals['login']);
    }

Did I miss something ? Else, I would make a pull request if necessary.

Thank you