show payment info
This commit is contained in:
@@ -23,7 +23,7 @@ def get_order(order_id: str):
|
||||
order = dyn.collection.get_items(
|
||||
TransactKey(order_id)
|
||||
+ SortKey('0')
|
||||
+ SortKey('ITEMS', rename_key='items')
|
||||
+ SortKey('ITEMS', rename_key='items', path_spec='items')
|
||||
+ SortKey('CREATED_BY', rename_key='created_by')
|
||||
+ SortKey('ADDRESS', rename_key='address')
|
||||
+ SortKey('CREDIT_CARD', rename_key='credit_card')
|
||||
@@ -45,5 +45,7 @@ def get_order(order_id: str):
|
||||
'payment_attempts': attempts['items'],
|
||||
'enrollments': enrollments['items'],
|
||||
}
|
||||
# Post-migration (orders): remove the following lines
|
||||
| ({'created_at': order['create_date']} if 'create_date' in order else {})
|
||||
| ({'paid_at': order['payment_date']} if 'payment_date' in order else {})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user