Conexão com a API do bitconheiros.pay #11
Unanswered
onlymarcus
asked this question in
Q&A
Replies: 2 comments
-
|
Erro que está apresentando: Failed to create invoice: 405 <title>405 Not Allowed</title>405 Not Allowed |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Sua loja tem uma carteira lightning configurada? BitcoinheirosPAY não é
provedor de liquidez lightning, vc precisa ter o seu próprio node
configurado lá direitinho na sua loja, apontando pro seu node (ou da blink
ou da breez greenlight)
Em qua., 15 de mai. de 2024 às 15:31, JOSE MARCUS ***@***.***>
escreveu:
… Erro que está apresentando:
Failed to create invoice: 405
<title>405 Not Allowed</title> 405 Not Allowed
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7RX3CH4RQWSTSVIOZGNFDZCOSWRAVCNFSM6AAAAABHYWFGISVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TINBZGQ3DI>
.
You are receiving this because you are subscribed to this thread.Message
ID: <bitcoinheiro/bitcoinheiros.com/repo-discussions/11/comments/9449464@
github.com>
--
--
Bit⚡Dov
PGP key 75D85F53B744E58003A2A0EF3C0A79F49F646007
🔑 https://gist.github.com/bitcoinheiro/e780c09a5644506dbf1f480f623a4ba0
***@***.*** // @bitdov
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Olá meus amigos, estou criando um bot do telegram onde os usuários podem fazer pedidos e pagar com lightning network. Durante a implementação para gerar fatura lightning estou encontrando dificuldades. Não sei qual o endereço eu coloco para a API funcionar.

Eu criei minha mas está dando erro quando tento chamar:
import requests
import json
class BTCPayClient:
def init(self, instance_url, chave_btcpay, store_id):
self.instance_url = instance_url
self.chave_btcpay = chave_btcpay
self.store_id = store_id
instance_url = "https://btcpayserver.org" # Use seu URL real aqui
chave_btcpay = getenv("CHAVE_BTCPAY") # Certifique-se de que está obtendo esses valores corretamente
store_id = getenv("STORE_ID")
Criando a instância do cliente BTC Pay
btc_pay_client = BTCPayClient(instance_url, chave_btcpay, store_id)
Beta Was this translation helpful? Give feedback.
All reactions