/** * Register a payment for the invoice * @param Invoice $invoice * @param Invoice_Payment $payment * @return Invoice */ public function registerPayment(Invoice &$invoice, Invoice_Payment $payment) { return $this->connector->registerPayment($invoice, $payment); }