mollie-api-php icon indicating copy to clipboard operation
mollie-api-php copied to clipboard

Enhanced methods.allActive() for integration consistency and added methods.list()

Open sandervanhooft opened this issue 1 year ago • 1 comments

This PR ensures integration consistency: methods.allActive() now returns the full set of activated methods regardless the currencies supported.

Context: Mollie added support for twint recently, which does not appear on /v2/methods by default because Twint does not support the EUR currency.

To mirror the API, the list() method is added for directly interacting with v2/methods.

$mollie->methods->list(); // Directly interact with the "/v2/methods" endpoint
$mollie->methods->allActive(); // Enhanced for consistency: returns all methods regardless the currencies supported

sandervanhooft avatar Jul 10 '24 11:07 sandervanhooft