Building an eCommerce page for a "trial" offer

We use Stripe to build ecommerce pages. I want to build a page where a client can sign up for a "30-day trial". They would put in their credit card info, it would be sent to stripe, but they wouldn't be charged until after the 30-day trial period. Has anyone done this before?

Jamie, did you ever build this? If you did, I'm curious how you did it.