Open alexandresanlim opened 10 months ago
Perfeito, o link correto não tem mais /Account/ Irei atualizar ASAP.
https://pay.bitcoinheiros.com/Register https://pay.bitcoinheiros.com/Login
Fala Dovão, aparentemente o /Register
também esta redirecionando para o login.
Problema já resolvido, essa issue pode ser fechada, não @bitcoinheiro ?
Para gerar invoice via API, estou tentando no python: 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
def create_invoice(self, amount=None, currency="BRL"):
url = f"{self.instance_url}/api/v1/stores/{self.store_id}/invoices"
headers = {
"Content-Type": "application/json",
"Authorization": f"token {self.chave_btcpay}"
}
body = {
"currency": currency
}
if amount:
body["amount"] = amount
response = requests.post(url, json=body, headers=headers)
if response.ok:
print("Invoice created:", response.json())
return response.json().get('data', {}).get('url') # Ajuste baseado na resposta real da API
else:
print("Failed to create invoice:", response.status_code, response.text)
return None
Erro ao criar invoice: HTTPSConnectionPool(host='pay.bitconheiros.com', port=443): Max retries exceeded (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000215E5281520>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
Estou usando esse endereço
instance_url = "https://pay.bitconheiros.com"
chave_btcpay = getenv("CHAVE_BTCPAY")
store_id = getenv("STORE_ID")
A URL está errada?
Describe the bug Links de login e cadastro no Bitcoinheiros pay quebrados.
To Reproduce Steps to reproduce the behavior:
https://pay.bitcoinheiros.com/Account/Register https://pay.bitcoinheiros.com/Account/Login
Desktop (please complete the following information):