payments->get('tr_WDqYK6vllg'); $capture = $payment->getCapture('cpt_4qqhO89gsT'); $amount = $capture->amount->currency . ' ' . $capture->amount->value; echo 'Captured ' . $amount; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); }