def get_charge_context(charge):
    """
    Return a dictionnary useful to populate charge receipt templates.
    """
    context = {'charge': charge, 'refunded': charge.refunded.exists(),
        'charge_items': charge.line_items, 'organization': charge.customer,
        'provider': charge.broker}
    return context
