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

Getting no data from systempay return #23

Open
morgan-blondellet opened this issue Jan 14, 2022 · 1 comment
Open

Getting no data from systempay return #23

morgan-blondellet opened this issue Jan 14, 2022 · 1 comment

Comments

@morgan-blondellet
Copy link

Hi, thanks for your plugin !

Whenever i get back from systempay to my sylius app, none of the data is accessible in the CaptureAction.

This means this condition is never true so i keep getting back to systempay instead of validating my payment

if (null !== $details[Api::FIELD_VADS_RESULT]) {
            return;
        }

Do you have any idea why ? I tried setting vads_return_mode to GET or POST to get some data but this is not it. My $details variable only contains the data i passed it when creating the payment, never the return data from systempay.

@morgan-blondellet
Copy link
Author

If anyone needs this, i managed to get my return value by setting

vads_return_mode to POST (you can also use GET)

THEN replacing the $details array with

if (null !== $details[Api::FIELD_VADS_URL_CHECK] && $request->getToken() instanceof TokenInterface) {
            $this->gateway->execute($httpRequest = new GetHttpRequest());
            $details->replace($httpRequest->request);
        }

inside the CaptureAction class. That way my $details array contains all the POST data sent back by systempay.

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

1 participant