public function getPaymentMethods()
    {
        $this->quote->setStoreId($this->storeManager->getStore()->getId());

        $export         = [];
        $paymentMethods = $this->paymentModel->getAvailableMethods($this->quote);

        foreach ($paymentMethods as $method) {
            $export[] = [
                'id'        => $method->getCode(),
                'title'     => $method->getTitle(),
                'is_active' => 1
            ];
        }

        return $export;
    }
public function getPaymentMethods()
    {
        $this->quote->setStoreId($this->storeManager->getStore()->getId());

        $export         = [];
        $paymentMethods = $this->paymentModel->getAvailableMethods($this->quote);

        foreach ($paymentMethods as $method) {
            $export[] = [
                'id'        => $method->getCode(),
                'title'     => $method->getTitle(),
                'is_active' => 1
            ];
        }

        return $export;
    }
public function getPaymentMethods ( ) { $ this -> quote -> setStoreId ( $ this -> storeManager -> getStore ( ) -> getId ( ) ) ; $ export = [ ] ; $ paymentMethods = $ this -> paymentModel -> getAvailableMethods ( $ this -> quote ) ; foreach ( $ paymentMethods as $ method ) { $ export [ ] = [ 'id' => $ method -> getCode ( ) , 'title' => $ method -> getTitle ( ) , 'is_active' => 1 ] ; } return $ export ; }
Retrieves all available payment methods and formats
them to Shopgate Merchant API ready format

@return array() - e.g. ['id' => 'checkmo', 'title' => 'Money Order', 'is_active' => 1]
Retrieves all available payment methods and formats them to Shopgate Merchant API ready format