You're bulding the $to array in the wrong way. You need a key-value pairs array, you can build it up this way:
$to[$row_users['user_bitcoin_wallet']] = $currency;
Then you can call sendmany this way:
$bitcoin->sendmany($BuyerAccount,$to);
Your code became:
<?php
//step 1 create array
$to = array();
//step 2 inserting values to array
while ( $row_users = mysqli_fetch_array($getting_allowed_users) )
{
$to[$row_users['user_bitcoin_wallet']] = $currency;
}
//step 3 print an array to check the result which is correct
print_r(array_values($to));
//step 4 sendmany
$bitcoin->sendmany($BuyerAccount,$to);