Заметки к выпуску
A minor release; minHostVersion is now 0.12.0 and the SDK moves from 3.11.0 to 3.19.0.
Added
- Refunds (#1093). The gateway implements
IPaymentRefundStatePluginof SDK 3.19.0.StartRefundAsynccreates a pull payment throughPOST /api/v1/stores/{storeId}/invoices/{invoiceId}/refund(refundVariantCustom, the exact refunded amount in the configured currency) and answers it as pending, with the pull payment's claim page when that page is anhttpspage on the configured server. The pull payment is namedRefund <refund id>after the host's stable refund id, and the store's pull payments are searched for that name first, so a retry of the same refund id never creates a second one.GetRefundStateAsyncreads the pull payment and its payouts: completed once the completed payouts in the refund currency cover the amount, failed once the pull payment is archived with nothing paid and no payout open, pending otherwise. A pull payment archived after a partial payout stays pending and logs a warning, because the host cannot record part of a refund.
Changed
- The plugin is built on
Hostpanel.Sdk3.19.0 andminHostVersionis 0.12.0, the first host release that ships it. - The older
RefundAsyncoverloads still refuse withNotSupportedException; their message now says that a refund is made only through the refund state capability. - The API key needs
btcpay.store.cancreatepullpaymentsandbtcpay.store.canmanagepullpaymentsfor refunds.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «btcpay» и выберите версию 1.4.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.