Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Same Status changed multiple times #7

Open
Shoprunners opened this issue Jul 26, 2021 · 1 comment
Open

Same Status changed multiple times #7

Shoprunners opened this issue Jul 26, 2021 · 1 comment

Comments

@Shoprunners
Copy link

Prestashop 1.7.7.5
Module Version 2.0.8

We have set up the module like supposed in the documentation.

But payone orders keep getting status updates.

image

image

Why?

@ckubitza
Copy link

ckubitza commented Aug 15, 2022

We had the same issue, but found a solution.
It looks like Prestashop is clearing the output buffer when generating PDFs, and we had configured the "payment accepted" status change, so that an email is sent with the invoice attached. The output from the status script was then cleared and payone did not receive a correct answer. In the end, payone tried updating the status over and over again.

Our solution is a small change in the status.php of the fcpayone plugin, in the process() function, move the echo to the end, just before the exit:

    public function process()
    {
        $this->saveTransaction();
        $this->handleOrderState();
        $this->handleForwarding();
        echo 'TSOK';
        exit;
    }

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

No branches or pull requests

2 participants