I've been struggling with it for a while. Maybe I'm just doing it wrong. First of all, it redirected to the homepage. I found out that was because the "value" attribute was missing from the <input> tag. It should pull in the name from the $paymentMethod->getName() method but that always returns null.
I think I solved this by just adding an attribute called $_name to os_braintree.php. Then it pulls it in properly (should it be parsed out of the XML or something?)...
Then, it doesn't even display the credit card fields unless I give it an attribute $_creditCard = true.
When all that's there, it goes through the motions and collects the data, but just ends in a blank screen (I'm watching it in XDebug). Nothing hits the API endpoint, no transaction posts, and the whole app just kind of drops off with nothing even in the PHP error log.
...help?