forked from CGM_Public/pretix_original
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])
|
total = sum([c.price for c in positions])
|
||||||
payment_fee = payment_provider.calculate_fee(total)
|
payment_fee = payment_provider.calculate_fee(total)
|
||||||
if payment_fee:
|
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
|
return fees
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user