skip to Main Content

How command pool works? and How can we redirect to payment gateway? Magento 2

I'm integrating a payment gateway using gateway command pool. This is di.xml <virtualType name="AuthorizeCommand" type="MagentoPaymentGatewayCommandGatewayCommand"> <arguments> <argument name="requestBuilder" xsi:type="object">AuthorizationRequest</argument> <argument name="transferFactory" xsi:type="object">InternationalSampleGatewayHttpTransferFactory</argument> <argument name="client" xsi:type="object">InternationalSampleGatewayHttpClientClientMock</argument> </arguments> </virtualType> This is TransferFactory.php public function create(array $request) { return $this->transferBuilder ->setBody($request) ->setMethod('Curl::POST') ->setHeaders(['Content-Type'…

VIEW QUESTION
Back To Top
Search