pro site : active theme after payment

how to automatic active some premium theme for client after client payment