Simple marketplace app questions


I am trying to make an app for members of my local community. I need a way for someone to choose to buy a product on the app, and for that money to be sent to account they bought it from, and a small fraction to my account.

I have been looking into Stripe and Braintree but have found no full explanation of how to do this.

Can anyone guide me ?

Thanks so much!