Please set your server key from sandbox

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

Config::$serverKey = '<your server key>';