mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
added manual payment check for offline shop
This commit is contained in:
parent
43e016633b
commit
980a878537
@ -9,6 +9,7 @@ from starlette.responses import HTMLResponse
|
||||
from lnbits.decorators import check_user_exists
|
||||
from lnbits.core.models import Payment, User
|
||||
from lnbits.core.crud import get_standalone_payment
|
||||
from lnbits.core.views.api import api_payment
|
||||
|
||||
from . import offlineshop_ext, offlineshop_renderer
|
||||
from .models import Item
|
||||
@ -51,6 +52,7 @@ async def confirmation_code(p: str = Query(...)):
|
||||
style = "<style>* { font-size: 100px}</style>"
|
||||
|
||||
payment_hash = p
|
||||
await api_payment(payment_hash)
|
||||
payment: Payment = await get_standalone_payment(payment_hash)
|
||||
if not payment:
|
||||
raise HTTPException(
|
||||
|
Loading…
Reference in New Issue
Block a user