Converting return callback to the model of calling the Cielo API.