Update purchase.php