In Brazil we already have a free, instantaneous payment system with a well documented API
https://github.com/bacen/pix-api