common/models/Users.php
/**
     * Check is any payment was already initialized by user
     * @return bool
     */
Check is any payment was already initialized by user
@return bool
Check is any payment was already initialized by user @return bool
public function checkPaymentInitialized()
    {
        $ttl_payment = 12 * 60 * 60;
        if ($this->payment_already_initialized) {
            if ($this->pay_type == self::PAY_CRYPTO) {
                if (strtotime($this->payment_init_date) + $ttl_payment < time()) {
                    return false;
                }
            }
            return true;
        } else {
            return false;
        }
    }
public function checkPaymentInitialized ( ) { $ ttl_payment = 12 * 60 * 60 ; if ( $ this -> payment_already_initialized ) { if ( $ this -> pay_type == self :: PAY_CRYPTO ) { if ( strtotime ( $ this -> payment_init_date ) + $ ttl_payment < time ( ) ) { return false ; } } return true ; } else { return false ; } }
Check is any payment was already initialized by user
 @return bool
Check is any payment was already initialized by user @return bool
//$this->payment_already_initialized = self::PAYMENT_NOT_INITIALIZED; //$this->save();