mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Move more code into change_payment_provider
This commit is contained in:
@@ -119,8 +119,9 @@ def _handle_transaction(trans: BankTransaction, code: str, event: Event=None, or
|
||||
}
|
||||
|
||||
if created:
|
||||
# We're perform a payment method switchign on-demand here
|
||||
old_fee, new_fee, fee = change_payment_provider(trans.order, p.payment_provider, p.amount, new_payment=p) # noqa
|
||||
# We're perform a payment method switching on-demand here
|
||||
old_fee, new_fee, fee, p = change_payment_provider(trans.order, p.payment_provider, p.amount,
|
||||
new_payment=p, create_log=False) # noqa
|
||||
if fee:
|
||||
p.fee = fee
|
||||
p.save(update_fields=['fee'])
|
||||
|
||||
Reference in New Issue
Block a user