mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-27 09:11:57 +02:00
fix: ids
This commit is contained in:
parent
efa95619d5
commit
e3be406b4b
@ -145,7 +145,7 @@ async def create_wallet_fiat_invoice(
|
|||||||
internal_payment.extra["fiat_payment_request"] = fiat_invoice.payment_request
|
internal_payment.extra["fiat_payment_request"] = fiat_invoice.payment_request
|
||||||
new_checking_id = (
|
new_checking_id = (
|
||||||
f"fiat_{fiat_provider_name}_"
|
f"fiat_{fiat_provider_name}_"
|
||||||
f"_{fiat_invoice.checking_id or internal_payment.checking_id}"
|
f"{fiat_invoice.checking_id or internal_payment.checking_id}"
|
||||||
)
|
)
|
||||||
await update_payment(internal_payment, new_checking_id, conn=conn)
|
await update_payment(internal_payment, new_checking_id, conn=conn)
|
||||||
internal_payment.checking_id = new_checking_id
|
internal_payment.checking_id = new_checking_id
|
||||||
@ -958,7 +958,7 @@ async def _debit_fiat_service_faucet_wallet(
|
|||||||
)
|
)
|
||||||
await create_payment(
|
await create_payment(
|
||||||
checking_id=f"internal_fiat_{fiat_provider_name}_"
|
checking_id=f"internal_fiat_{fiat_provider_name}_"
|
||||||
f"_faucet_{payment.payment_hash}",
|
f"faucet_{payment.payment_hash}",
|
||||||
data=create_payment_model,
|
data=create_payment_model,
|
||||||
status=PaymentState.SUCCESS,
|
status=PaymentState.SUCCESS,
|
||||||
conn=conn,
|
conn=conn,
|
||||||
|
@ -13,6 +13,7 @@ from lnbits.walletsfiat.base import FiatInvoiceResponse
|
|||||||
|
|
||||||
from ..helpers import (
|
from ..helpers import (
|
||||||
get_random_invoice_data,
|
get_random_invoice_data,
|
||||||
|
get_random_string,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -165,7 +166,7 @@ async def test_create_fiat_invoice(client, inkey_headers_to, mocker: MockerFixtu
|
|||||||
fiat_payment_request = "https://stripe.com/pay/session_123"
|
fiat_payment_request = "https://stripe.com/pay/session_123"
|
||||||
fiat_mock_response = FiatInvoiceResponse(
|
fiat_mock_response = FiatInvoiceResponse(
|
||||||
ok=True,
|
ok=True,
|
||||||
checking_id="session_123",
|
checking_id=f"session_123_{get_random_string(10)}",
|
||||||
payment_request=fiat_payment_request,
|
payment_request=fiat_payment_request,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user