It's often useful to have a full exception traceback rather than just the error message. Consider changing to:

```diff
-                    "Everything else succeeded. Error was: %s"
-                    % (payment_record.id, e)
+                    "Everything else succeeded.", payment_record.id, exc_info=True
```