mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Correctly set OrderFee type for new orders
This commit is contained in:
@@ -347,7 +347,8 @@ def _get_fees(positions: List[CartPosition], payment_provider: BasePaymentProvid
|
||||
total = sum([c.price for c in positions])
|
||||
payment_fee = payment_provider.calculate_fee(total)
|
||||
if payment_fee:
|
||||
fees.append(OrderFee(fee_type=OrderFee.FEE_TYPE_PAYMENT, value=payment_fee))
|
||||
fees.append(OrderFee(fee_type=OrderFee.FEE_TYPE_PAYMENT, value=payment_fee,
|
||||
internal_type=payment_provider.identifier))
|
||||
|
||||
return fees
|
||||
|
||||
|
||||
Reference in New Issue
Block a user