Missing argument in purchase_done_action caused fatal error

I have added this argument. 
Missing opening tag <?php made problem with showing page at official documentation