Black

parent 9fb68ec1
......@@ -450,7 +450,9 @@ def process_tpay_payment(renewal):
"""
if renewal.member.tpay_enabled:
if renewal.payment is None:
renewal.payment = create_payment(renewal, processed_by=renewal.member, pay_type=Payment.TPAY)
renewal.payment = create_payment(
renewal, processed_by=renewal.member, pay_type=Payment.TPAY
)
renewal.save()
process_payment(renewal.payment)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment