Skip to content

Commit

Permalink
bug: use incoming payment for check (#14)
Browse files Browse the repository at this point in the history
internal invoices werent working
  • Loading branch information
dni authored Nov 28, 2024
1 parent 6a97738 commit e703931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def api_invoices_check_payment(invoice_id: str, payment_hash: str):
status_code=HTTPStatus.NOT_FOUND, detail="Invoice does not exist."
)
try:
payment = await get_standalone_payment(payment_hash)
payment = await get_standalone_payment(payment_hash, incoming=True)
if not payment:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="Payment does not exist."
Expand Down

0 comments on commit e703931

Please sign in to comment.