feat: show more details about the order

This commit is contained in:
Vlad Stan 2023-03-07 12:00:43 +02:00
parent 68795d2db2
commit 76af65c148
7 changed files with 72 additions and 27 deletions

View file

@ -46,6 +46,7 @@ from .models import (
Merchant,
Nostrable,
Order,
OrderExtra,
PartialMerchant,
PartialOrder,
PartialProduct,
@ -487,6 +488,7 @@ async def api_create_order(
stall_id=products[0].stall_id,
invoice_id=payment_hash,
total=total_amount,
extra=await OrderExtra.from_products(products),
)
await create_order(wallet.wallet.user, order)