Payment fixes and additions
Add testing mode for payments