I'm setting up a PayPal Donation button in my Ruby on Rails project, and I'd like to record every transaction on that button in my database.
I see that you can send a donor to a specific URL on success on PayPal's button setup page. I imagined I'd input a controller action in this field that takes in the amount donated and creates a new Tip entry in the database with the amount, but I can't seem to find a variable that stores how much was donated in a transaction - only a variable that lets you set a donation amount.
Does anyone know of a way to have PayPal send back the donation amount whenever a donation occurs? Thank you!