public function getId() { if ($this->__isInitialized__ === false) { return (int) $this->_identifier["id"]; } $this->__load(); return parent::getId(); }
/** * Creates a unique Stripe payer reference ID which will be replaced after adding it to Stripe system * * All payers that we create must be identifiable by us with a unique ID. For this we * use the integer primary key from the \Etnities\Customer object. * * Later this ID can be used in RealEFT transactions for recurring payments, etc. * * @param \Entities\Customer $customer The instance of the payer's \Entities\Customer object * @return string The unique payer ID */ public static function createPayerRef($customer) { if (!$customer instanceof \Entities\Customer) { throw new OSS_PaymentProcessor_Realex_Exception(OSS_PaymentProcessor_Realex_Exception::ERR_BAD_OBJECT_FOR_REF); } // maximum 50 characters return 'P_' . $customer->getId(); }