Apply suggestion from @pajowu

Co-authored-by: pajowu <engelhardt@pretix.eu>
This commit is contained in:
Lukas Bockstaller
2026-03-13 13:58:07 +01:00
committed by GitHub
parent da97be5194
commit 384c83fffb

View File

@@ -1866,7 +1866,7 @@ class OrderCreateSerializer(I18nAwareModelSerializer):
)
elif payment_provider:
order.payments.create(
amount=order.pending_sum,
amount=order.total,
provider=payment_provider,
info=payment_info,
state=OrderPayment.PAYMENT_STATE_CREATED