bigcommerce-api-php
bigcommerce-api-php copied to clipboard
Fatal error: Call to undefined function Bigcommerce\Api\random_bytes() in /var/www/html/dazadi-admin/lib/vendor/bigcommerce/api/src/Bigcommerce/Api/Client.php on line 430
https://github.com/bigcommerce/bigcommerce-api-php/blob/01a42fe40abef81e81750ea2f17bec2f7bc49a17/src/Bigcommerce/Api/Client.php#L429
Actually I'm using bigcommerce customer login API. When I'm calling the "getCustomerLoginToken" function it shows me "random_bytes()" undefined error. I know this function is in php 7.0 and for that I includes the "https://github.com/paragonie/random_compat" package but I'm still facing same issue.
So what should I do for it.