Paysera捐赠按钮具有自定义金额值

I'm trying to implement into my Wordpress website a Paysera Donate Button (https://developers.paysera.com/en/payments/1.2#donate-button) but would also like to have an input field where a user would select the amount he want to donate and then when Donate button is clicked the amount is carried over from the input field. I have below php code but not sure what values should I work with to have the value of input be inserted into amount.

$request = WebToPay::buildRequest(array(
                // Čia surašyti tik keli parametrai.
                // Visų galimų parametrų su aprašymais sąrašą rasite žemiau.
                'projectid'     => 0,
                'sign_password' => '',
                'orderid'       => 0,
                'country'       => 'LT',
                'amount'        =>  100,
                'lang'          => 'LIT',
                'paytext'       => 'Parama [site_name] svetainei.',
                'accepturl'     => $self_url.'/accept.php',
                'cancelurl'     => $self_url.'/cancel.php',
                'callbackurl'   => $self_url.'/callback.php',
                'test'          => 0,
            ));
    } catch (WebToPayException $e) {
        echo $e->getMessage();
    }

?>
<form method="post" action="<?php echo WebToPay::PAY_URL; ?>">
    <?php foreach ($request as $key => $val): ?>
    <input type="hidden" name="<?php echo $key ?>"
           value="<?php echo get_magic_quotes_gpc() ? $val : addslashes($val); ?>" />
    <?php endforeach; ?>
    <input type="image" border="0" name="submit"
           src="https://developers.paysera.com/bundles/evppayseradoc/img/support-button-en.gif"
           alt="Paremkite svetainę! - mokejimai.lt tai saugu ir patikima!" />
</form> 

Is anyone able to help me with this? I appreciate your time.