Closed cariaso closed 2 years ago
@cariaso can you describe the json payloads you would expect.
response = create_pairing_code({
storeId:"storeId",
label:"alabel",
})
response = {
pairingCode : "x123abc"
}
Ok so this is not a greenfield api to create invoices(#1760 ) but an api to manage Bitpay API keys
I will close this one, we shouldn't add API related to bitpay's API. The Bitpay's API is deprecated, new development should use Greenfield.
via http://some.onion/stores/storeid/Tokens http://some.onion/api-tokens http://some.onion/api-access-request?pairingCode=abc123&selectedStore=storeid http://some.onion/stores/storeid/Tokens?pairingCode=abc123
I'm able to generate a pairingCode and use it to create a key with https://github.com/btcpayserver/btcpay-python
However the Greenfield API doesn't give me a way to achieve the generation of such a key.
That key allows me to make these calls: btcpay_client.create_invoice({"price": 123, "currency": "USD", "orderId": orderId}) btcpay_client.get_invoice(invoiceId) btcpay_client.get_invoices(order_id=orderId)
I don't know whether it's better to either