This is very simple. All you need is the game and Cheat Engine.
Start any level
Note how much sun you have
Pause the game
Open Cheat Engine
Select the popcapgame1.exe process to open
Set the value to the amount of sun you have
Hit "First Scan"
You'll get a bunch of result
Open the game back up, earn or spend some sunlight
Note your new amount
In Cheat Engine, change the value to your new amount, and rescan
You should get 1 value (if not, get more sun, then scan again)
Double click it
Change the value to 1000 or higher
You now have unlimited sun.
NOTE you will have to repeat the scanning and freezing process after you start a new chpater
Click "Memory View"
Right click in the window and select "Go to Address"
Double click the result, edit the last 2 digits from 01 to 200, click ok/yes
You now have instant recharge.
This process is similar to sun's process, with some small changes
-Note how many coins you have
-Type the number in to search, but delete the last 0 of the number
-Earn/spend some coins
-Search for your next value
-Double click it, then edit the value to whatever you'd like.