'Ensure all required parameters were passed to the API call and format
them correctly.'

def _check_and_update_params(self, required, params):

    for r in required:
        if (r not in params):
            raise PayPalError(('Missing    required    param:    %s' % r))
    return dict(((k.upper(), v) for (k, v) in params.items()))
