bitcoinheiros.com icon indicating copy to clipboard operation
bitcoinheiros.com copied to clipboard

[BUG] Links Bitcoinheiros pay quebrados

Open alexandresanlim opened this issue 2 years ago • 4 comments

Describe the bug Links de login e cadastro no Bitcoinheiros pay quebrados.

To Reproduce Steps to reproduce the behavior:

  1. Open bitcoinheiros pay web site: https://bitcoinheiros.com/pay/
  2. Click on menu links: "Fazer Login" or "Cadastrar"
  3. See error

https://pay.bitcoinheiros.com/Account/Register https://pay.bitcoinheiros.com/Account/Login

Desktop (please complete the following information):

  • Browser: Chrome

alexandresanlim avatar Dec 11 '23 13:12 alexandresanlim

Perfeito, o link correto não tem mais /Account/ Irei atualizar ASAP.

https://pay.bitcoinheiros.com/Register https://pay.bitcoinheiros.com/Login

bitcoinheiro avatar Dec 11 '23 14:12 bitcoinheiro

Fala Dovão, aparentemente o /Register também esta redirecionando para o login.

alexandresanlim avatar Dec 12 '23 11:12 alexandresanlim

Problema já resolvido, essa issue pode ser fechada, não @bitcoinheiro ?

Alexbrazdasilva avatar Apr 10 '24 23:04 Alexbrazdasilva

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?

onlymarcus avatar May 15 '24 02:05 onlymarcus