mollie / reseller-api

Reseller API voor het aanmaken en beheren van Mollie-accounts
https://www.mollie.com/
BSD 2-Clause "Simplified" License
13 stars 4 forks source link

Get login link feature missing #24

Closed freddieleeman closed 6 years ago

freddieleeman commented 6 years ago

Support for "Get login link" feature is missing. Although this needs special permissions it would be nice to have available.

freddieleeman commented 6 years ago
/**
 * @param string $partner_id_customer
 * @param string $redirect_url
 *
 * @throws Mollie_Exception
 * @return SimpleXMLElement
 */
public function getLoginLink($partner_id_customer, $redirect_url="")
{
    $params = [
        "partner_id_customer" => $partner_id_customer,
        "redirect_URL" => $redirect_url
    ];

    return $this->performRequest(
        self::METHOD_POST,
        sprintf('/api/reseller/v%d/get-login-link', self::API_VERSION),
        $params
    );
}