diff --git a/detailsBody.html b/detailsBody.html
index 17c97065..39ffac33 100644
--- a/detailsBody.html
+++ b/detailsBody.html
@@ -93,8 +93,11 @@
{{ keyTrans('payment') }}:
+ {% set i = 0 %}
{% for k, tag in payment %}
- {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
+ {%- if i > 0 %},{% endif %}
+ {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
+ {% set i = i + 1 -%}
{% endfor %}
diff --git a/popupBody.html b/popupBody.html
index 46533572..b5089522 100644
--- a/popupBody.html
+++ b/popupBody.html
@@ -91,8 +91,11 @@
{{ keyTrans('payment') }}:
+ {% set i = 0 %}
{% for k, tag in payment %}
- {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }} {% else %}{{ keyTrans(tag, { default: k }) }} {% endif %}
+ {%- if i > 0 %},{% endif %}
+ {% if tags[tag] == 'no' %}{{ keyTrans(tag, { default: k }) }}{% else %}{{ keyTrans(tag, { default: k }) }}{% endif -%}
+ {% set i = i + 1 -%}
{% endfor %}