Today i'm gonna show to you, how to run PagSeguro on Android Apps without any third part app from PagSeguro.
Everybody knows how important it is to offer payment methods in our apps. PagSeguro is a very common payment method in Brazil, but very tricky to get it run correctly on android apps. In fact almost every payment method is very annoying to implement! :)
For this reason I decided to implement my own PagSeguro solution and share a complete sample with the world.
First Step - Get a PagSeguro AccountTo do so, register yourself on pagseguro, log in and go to: Vender > Ferramentas para desenvolvedores > Sandbox
There you'll find a automatic created test buyer (comprador de teste) and a test seller (vendedor de teste) like in the images bellow. kepp it open, then you'll need those values in the app we will see here.
Second Step - Fork or just download the sample from GithubThe sample was developed using android studio and tested on my pagseguro sandbox account. It is available from here: https://github.com/treslines/pagseguro_android. The image bellow shows some transactions i made using my sandbox account:
What you'll get?The pictures bellow show how the app looks like. It addresses already navigations issues e user notifications.
Go download it!Go now to github: https://github.com/treslines/pagseguro_android. download it and test it. Any feedback or contribution to make it better is welcome!
That's all! Hope you like it!