Maybe try the following:
Include all puzzles in your free app
Set boolean locked = true
and lock the payed puzzles if locked = true.
When your app starts, check if the app was purchased (see documentation)
If the app was purchased, set locked = false.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…