1

Payment gateway with third party redirects in magento2 not working

public function placeRequest(TransferInterface $transferObject)
    { 
        $response = $this->generateResponseForCode(
            $this->getResultCode(
                $transferObject
            )
        );
        //header("location:https://www.google.com/");

        // $CustomRedirectionUrl = $this->_url->getUrl('https://www.google.com/');
        // $this->_responseFactory->create()->setRedirect($CustomRedirectionUrl)->sendResponse();



        $this->logger->debug(
            [
                'request' => $transferObject->getBody(),
                'response' => $response
            ]
        );

        return $response;
    }
2

1 Answer 1

0

You can check here

Specially redirectAfterPlaceOrder: false,


afterPlaceOrder: function () {
                window.location.replace(url.build('oxipay/checkout/index'));
            },

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.