mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
550 stars 189 forks source link

Endpoint structure change poc #736

Closed Naoray closed 1 week ago

Naoray commented 1 month ago

Should be self explanatory.

IMO the BaseEndpointCollection is far from optimally structured, but after all it's a POC...

Atm those endpoints are implemented

$client = new MollieApiClient();
$client->setApiKey("test_xxxxxxxxxxxxxxxxxx");

$client->payments->page();
$client->payments->iterator();
$client->payments->get(..);
$client->payments->refund(..);
$client->paymentRefunds->page(..)