/** * Returns the payment object and includes the Payment Class. * If there is no payment it throws an error. * * @param string $paymentType Payment type * * @return \CommerceTeam\Commerce\Payment\PaymentAbstract */ public function getPaymentObject($paymentType = '') { if (empty($paymentType)) { $this->getPaymentFromRequest(); $paymentType = $this->getPaymentType(); } return parent::getPaymentObject($paymentType); }