Did it fail on the device?
Notice that this API doesn't work well on the simulator but should work on the device.
Did you pass the callback object instance?
Generally that method is pretty easy to implement in the server by following the braintree tutorials.