Update pay.api.php