{% extends "base.html" %} {% load static %} {% block title %}{{ product.name }} - Product Details{% endblock %} {% block content %}

Product Details

Viewing {{ product.name }}

{% if not stripe_enabled %}

Stripe integration is not enabled. To enable Stripe, set STRIPE_ENABLED=true in your environment.

{% elif not stripe_available %}

Stripe API is not available. Make sure you have installed the Stripe package with: pip install stripe

{% elif missing_api_keys %}

Stripe API keys are missing. Configure STRIPE_PUBLIC_KEY, STRIPE_SECRET_KEY, and STRIPE_WEBHOOK_SECRET in your environment.

{% elif error %}

Error loading product: {{ error }}

{% elif not product %}

Product not found with ID: {{ product_id }}

{% else %}

{{ product.name }}

{% if product.description %}

{{ product.description }}

{% endif %}

Status

{% if product.active %} Active {% else %} Inactive {% endif %}

Product ID

{{ product.id }}
{% if product.metadata %}

Metadata

{% for key, value in product.metadata.items %} {% empty %} {% endfor %}
Key Value
{{ key }} {{ value }}
No metadata
{% endif %}

Pricing

{% if prices %}
{% for price in prices %}

{% if price.unit_amount_decimal %} {% if price.currency == 'usd' %}${% elif price.currency == 'eur' %}€{% elif price.currency == 'gbp' %}£{% else %}{{ price.currency|upper }} {% endif %}{{ price.unit_amount_decimal|floatformat:2 }} {% else %} {% if price.currency == 'usd' %}${% elif price.currency == 'eur' %}€{% elif price.currency == 'gbp' %}£{% else %}{{ price.currency|upper }} {% endif %}{{ price.unit_amount|default:0|floatformat:2 }} {% endif %}

{% if price.recurring %}

{% if price.recurring.interval_count > 1 %} {{ price.recurring.interval_count }} {{ price.recurring.interval|title }}s billing {% else %} {{ price.recurring.interval|title }} billing {% endif %}

{% else %}

One-time payment

{% endif %}

Price ID: {{ price.id }}

{% endfor %}
{% else %}
No pricing available
{% endif %}
{% if product.images and product.images|length > 0 %}

Product Images

{% for image in product.images %}
{{ product.name }}
{% endfor %}
{% endif %} {% endif %}
{% endblock %}