Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when cancelling a payment #10

Open
PNPIT opened this issue Aug 13, 2019 · 3 comments
Open

Error when cancelling a payment #10

PNPIT opened this issue Aug 13, 2019 · 3 comments

Comments

@PNPIT
Copy link

PNPIT commented Aug 13, 2019

Hi,
I'm using SyliusMercanetBnpParibasPlugin 2.2.2 with Sylius 1.4.7.
When making an order, if I cancel my payment on Mercanet site, I get the following error when going back to sylius.

Unknown method getAuthorisationId

The error seems come from bitbag/mercanet-bnp-paribas-plugin/src/Action/CaptureAction.php, at line 93.

$model['authorisationId'] = $this->mercanetBnpParibasBridge->getAuthorisationId();

To remove the error, I have to replace this line with the following:

if ($model['status'] == PaymentInterface::STATE_COMPLETED) {
    $model['authorisationId'] = $this->mercanetBnpParibasBridge->getAuthorisationId();
}

In sylius back-office, cancelled and validated orders seem to be correctly saved.

Can you reproduce the bug? Is it a valid fix?
Thanks for your time.

@AizeLeOuf
Copy link

Same here any news ?

@Loocos
Copy link
Contributor

Loocos commented Aug 3, 2020

Also in 1.7

@felixgilles
Copy link

Also in 1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants