Please set your client key from sandbox

In file: /var/www/midtrans-php-master/examples/core-api/checkout.php

Config::$clientKey = '<your client key>';