src/Models/Request.php
public function buildAccessParameters($public_key, &$env_key, &$enc_data)
    {
        $params = $this->builParametersList();
        if (is_null($params)) {
            return false;
        }
        $src_data = Mobilpay_Payment_Request::buildQueryString($params);
        $enc_data = '';
        $env_keys = [];
        $result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key));
        if ($result === false) {
            $env_key = null;
            $enc_data = null;

            return false;
        }
        $env_key = base64_encode($env_keys[0]);
        $enc_data = base64_encode($enc_data);

        return true;
    }
public function buildAccessParameters($public_key, &$env_key, &$enc_data)
    {
        $params = $this->builParametersList();
        if (is_null($params)) {
            return false;
        }
        $src_data = Mobilpay_Payment_Request::buildQueryString($params);
        $enc_data = '';
        $env_keys = [];
        $result = openssl_seal($src_data, $enc_data, $env_keys, array($public_key));
        if ($result === false) {
            $env_key = null;
            $enc_data = null;

            return false;
        }
        $env_key = base64_encode($env_keys[0]);
        $enc_data = base64_encode($enc_data);

        return true;
    }
public function buildAccessParameters ( $ public_key , & $ env_key , & $ enc_data ) { $ params = $ this -> builParametersList ( ) ; if ( is_null ( $ params ) ) { return false ; } $ src_data = Mobilpay_Payment_Request :: buildQueryString ( $ params ) ; $ enc_data = '' ; $ env_keys = [ ] ; $ result = openssl_seal ( $ src_data , $ enc_data , $ env_keys , array ( $ public_key ) ) ; if ( $ result === false ) { $ env_key = null ; $ enc_data = null ; return false ; } $ env_key = base64_encode ( $ env_keys [ 0 ] ) ; $ enc_data = base64_encode ( $ enc_data ) ; return true ; }
access Mobilpay.Ro secure payment portal

@param resource $public_key - obtained by calling openssl_pkey_get_public
@param string &$env_key - returns envelope key base64 encoded or null if function fails
@param string &$enc_data - returns data to post base64 encoded or null if function fails

@return boolean
access Mobilpay . Ro secure payment portal