Skip to content

Commit

Permalink
Fix null details.
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Feb 3, 2023
1 parent f02e7b8 commit 25f3363
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pay-api/src/pay_api/services/payment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def create_invoice(cls, payment_request: Tuple[Dict[str, Any]], authorization: T
invoice.business_identifier = business_identifier
invoice.payment_method_code = pay_service.get_payment_method_code()
invoice.corp_type_code = corp_type
invoice.details = payment_request.get('details', None)
details = payment_request.get('details', [])
details = [] if details == 'null' else details
invoice.details = details
invoice = invoice.flush()

line_items = []
Expand Down

0 comments on commit 25f3363

Please sign in to comment.