lnbits/extensions/streamalerts/views_api.py
async def api_post_donation(request: Request, data: ValidateDonation):
    """Post a paid donation to Stremalabs/StreamElements.
    This endpoint acts as a webhook for the SatsPayServer extension."""

    donation_id = data.id
    charge = await get_charge(donation_id)
    if charge and charge.paid:
        return await post_donation(donation_id)
    else:
        raise HTTPException(
            status_code=HTTPStatus.BAD_REQUEST, detail="Not a paid charge!"
        )
Post a paid donation to Stremalabs/StreamElements.
    This endpoint acts as a webhook for the SatsPayServer extension.
Post a paid donation to Stremalabs/StreamElements.
This endpoint acts as a webhook for the SatsPayServer extension.
Post a paid donation to Stremalabs / StreamElements . This endpoint acts as a webhook for the SatsPayServer extension .
async def api_post_donation(request: Request, data: ValidateDonation):
    donation_id = data.id
    charge = await get_charge(donation_id)
    if charge and charge.paid:
        return await post_donation(donation_id)
    else:
        raise HTTPException(
            status_code=HTTPStatus.BAD_REQUEST, detail="Not a paid charge!"
        )
async def api_post_donation ( request : Request , data : ValidateDonation ) : donation_id = data . id charge = await get_charge ( donation_id ) if charge and charge . paid : return await post_donation ( donation_id ) else : raise HTTPException ( status_code = HTTPStatus . BAD_REQUEST , detail = "Not a paid charge!" )
Post a paid donation to Stremalabs/StreamElements.
Post a paid donation to Stremalabs / StreamElements .
"""Post a paid donation to Stremalabs/StreamElements.
    This endpoint acts as a webhook for the SatsPayServer extension."""
request
Request
data
ValidateDonation