(self, version=None, validate=True)
Set the desired API version to use for Stripe requests.

        :param version: The version to set for the Stripe API.
        :type version: ``str``
        :param validate: If True validate the value for the specified version).
        :type validate: ``bool``
Set the desired API version to use for Stripe requests.
Set the desired API version to use for Stripe requests .
def set_stripe_api_version(self, version=None, validate=True):
        """
        Set the desired API version to use for Stripe requests.

        :param version: The version to set for the Stripe API.
        :type version: ``str``
        :param validate: If True validate the value for the specified version).
        :type validate: ``bool``
        """
        version = version or self.STRIPE_API_VERSION

        if validate:
            valid = validate_stripe_api_version(version)
            if not valid:
                raise ValueError("Bad stripe API version: {}".format(version))

        stripe.api_version = version
def set_stripe_api_version ( self , version = None , validate = True ) : version = version or self . STRIPE_API_VERSION if validate : valid = validate_stripe_api_version ( version ) if not valid : raise ValueError ( "Bad stripe API version: {}" . format ( version ) ) stripe . api_version = version