Will App Review be able to test this, without waiting X days for your code to decide that the free trial has ended? If not, I believe they must reject it.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: