@db_task(retries=<NUM_LIT:3>)<EOL>def updateSquareFees(paymentRecord):
fees = paymentRecord.netFees<EOL>invoice = paymentRecord.invoice<EOL>invoice.fees = fees<EOL>invoice.save()<EOL>invoice.allocateFees()<EOL>return fees<EOL>
The Square Checkout API does not calculate fees immediately, so this task is
called to be asynchronously run 1 minute after the initial transaction, so that
any Invoice or ExpenseItem associated with this transaction also remains accurate.