working and complete system_pay

Hi,

As promised I post you a pull request. My system is in production now and seems to work correctly. I implemented all the fields of V2, and simplified integration and config with a .yml and railtie.