lib/WalletManager.php
/*
     * Generate a random payment id
     *
     * @return string Payment id
     */
Generate a random payment id
@return string Payment id
Generate a random payment id @return string Payment id
public function generate_payment_id($length = null)
    {
        if (empty($length)) {
            $length = $this->payment_id_length;
        }
        return bin2hex(random_bytes($length / 2));
    }
public function generate_payment_id ( $ length = null ) { if ( empty ( $ length ) ) { $ length = $ this -> payment_id_length ; } return bin2hex ( random_bytes ( $ length / 2 ) ) ; }
Generate a random payment id
 @return string Payment id
Generate a random payment id @return string Payment id