Заметки к выпуску
Added
- First release: a BTCPay Server payment gateway built on
Hostpanel.Sdk3.5.0 that talks to the merchant's own server through the Greenfield API. - Start a payment: an invoice for the exact fiat amount of the host invoice, in the configured currency, with the order number and description as metadata. The checkout link BTCPay returns must be
https, carry no credentials, be on the configured server and name the invoice just created. - Read the status:
Settledis paid only when the answer names the requested invoice, the configured currency and a positive price that fits the minor unit exactly. The price is the fiat price of the invoice, never what was paid in coins. A late or overpaid settlement is paid; a merchant marked settlement is paid and a warning is logged, because no coins need have arrived; a settlement BTCPay marks as partial or invalid, or words in a way nobody knows, stays pending and a warning is logged. Status words are matched exactly, sosettledis notSettled, and the raw status handed to the host is built from the names of the statuses the plugin understood, withUnknownfor any other word.ExpiredandInvalidare declined, with a warning when money arrived for them. Everything else is pending. - A truly unknown invoice (404 with the
invoice-not-foundcode) is declined. Any other failure, an unknown store included, is raised so the host asks again. - Refunds are not made by the plugin. A BTCPay refund is a pull payment the payer claims, so
RefundAsyncthrowsNotSupportedExceptionand calls nothing. - The server address must be an absolute
httpsaddress without user info, query or fragment, and its host must be public: loopback, private, link-local, documentation, benchmarking, NAT64, 6to4 and otherwise reserved addresses, and names that only resolve inside a network or nowhere at all (.test,.example,.invalid), are refused. An answer that finally comes from another scheme, host or port than the configured server, and an answer that announces more than 256 KiB, is dropped unread; one of unknown length is dropped as soon as it passes that size. Also refused: the 6to4 relay block, Teredo and the local-use NAT64 block. - A call that gets no answer in 30 seconds fails as a transport failure, on a clock the tests can drive. A failure keeps no inner exception. HTTP 429 and 500 and above are raised as a rate limit and a server error, never as a refusal.
- No webhook: payments settle through the host's status polling, which reads the server's own state each time.
- Settings: server address, store ID, API key and currency, with English, Russian and Armenian labels.
- Marketplace listing: a cover and three screenshots in
screenshots/, with their editable sources indesign/. - The plugin icon, the cover and the screenshots use the official BTCPay Server logo, with its shapes and colours unchanged.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «btcpay» и выберите версию 1.0.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.