Utilities
Supported Currency Choice Generator
djstripe.utils.get_supported_currency_choices
(api_key)Pull a stripe account's supported currencies and returns a choices tuple of those supported currencies.
:param api_key: The api key associated with the account from which to pull data. :type api_key: str
Clear Expired Idempotency Keys
djstripe.utils.clear_expired_idempotency_keys
()Convert Stripe Timestamp to Datetime
djstripe.utils.convert_tstamp
(response)Convert a Stripe API timestamp response (unix epoch) to a native datetime.
Friendly Currency Amount String
djstripe.utils.get_friendly_currency_amount
(amount, currency)