This is deprecated in versions >= 3.0.0, so you can remove it.
Optional
Callback function in the event of an error.
Callback function on success.
This is deprecated in versions >= 3.0.0, so you can remove it.