• File: FetchIssuersRequest.php
  • Full Path: /var/www/crm_set/application/vendor/omnipay/mollie/src/Message/Request/FetchIssuersRequest.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 1.12 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Omnipay\Mollie\Message\Request;

use Omnipay\Common\Exception\InvalidRequestException;
use Omnipay\Mollie\Message\Response\FetchIssuersResponse;
use Psr\Http\Message\ResponseInterface;

/**
 * Returns issuers available for the ideal payment method.
 *
 * @see https://docs.mollie.com/reference/v2/methods-api/get-method
 * @method FetchIssuersResponse send()
 */
class FetchIssuersRequest extends AbstractMollieRequest
{
    /**
     * Since the Issuer endpoint got removed in the Mollie v2 api.
     * We now use the include parameter on the get-method endpoint.
     *
     * @var string
     */
    protected $endpoint = '/methods/ideal?include=issuers';

    /**
     * @return array
     * @throws InvalidRequestException
     */
    public function getData()
    {
        $this->validate('apiKey');

        return [];
    }

    /**
     * @param array $data
     * @return ResponseInterface|FetchIssuersResponse
     */
    public function sendData($data)
    {
        $response = $this->sendRequest(self::GET, $this->endpoint);

        return $this->response = new FetchIssuersResponse($this, $response);
    }
}