I'm working with STRIPE Gateway Payment on Django and I'm facing problems for access to dictionary on templates.
I already do on pure python and work fine.
This is my view
@login_required
def invoice_details(request):
customer = stripe.Customer.list(email=request.user)
return render(request, 'payment.html', customer)
and in template this is my code:
<h2>{% trans "User details" %}</h2>
{% for actual_customer in customer.data %}
ID: {{ actual_customer.id }}
{% endfor %}
The above code isn't working, any help is appreciated