Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Nov 27, 2023
1 parent d1c559a commit 77af7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/services/pad_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def update_account(self, name: str, cfs_account: CfsAccountModel, payment_info:
def create_invoice(self, payment_account: PaymentAccount, line_items: [PaymentLineItem], invoice: Invoice,
**kwargs) -> InvoiceReference: # pylint: disable=unused-argument
"""Return a static invoice number for direct pay."""
if payment_account.cfs_account and payment_account.cfs_account.status == CfsAccountStatus.FREEZE.value:
if payment_account.cfs_account_status == CfsAccountStatus.FREEZE.value:
# Note NSF (Account Unlocking) is paid using DIRECT_PAY - CC flow, not PAD.
current_app.logger.info(f'Account {payment_account.id} is frozen, rejecting invoice creation')
raise BusinessException(Error.PAD_CURRENTLY_NSF)
Expand Down

0 comments on commit 77af7c3

Please sign in to comment.