customers->page(null, 1)[0]; /* * Get the all payments for this API key ordered by newest. */ $payments = $customer->payments(); echo ""; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }