Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix can not refund if payment can be captured
jxltom32efbaddf97c
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex 6fa45f0880..6744485357 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -162,7 +162,8 @@<a href="#base-modal" data-href="{% url 'dashboard:capture-payment' order_pk=order.pk payment_pk=payment.pk %}" class="btn-flat modal-trigger-custom waves-effect">{% trans "Capture" context "Order summary card action" %}</a>- {% elif order.can_refund %}+ {% endif %}+ {% if order.can_refund %}<a href="#base-modal" data-href="{% url 'dashboard:refund-payment' order_pk=order.pk payment_pk=payment.pk %}" class="btn-flat modal-trigger-custom waves-effect">{% trans "Refund" context "Order summary card action" %}</a>