Both times I was modifying checkout.php were for features I either had not enabled or had not clicked "accept terms and service" for. In the php logs Stripe tells you as much.
For collecting emails, I had to accept the terms here