Заметки к выпуску
Added
- More than one currency (innovayse/hostpanel-sdk#95,
PaymentInstruction.Currencyof SDK 3.19.0). The plugin now answersAcceptsCurrencyfor every currency Mollie settles in, creates each payment in the currency of its invoice, and charges a saved method in the currency of the charge. Thecurrencysetting is only the default thatCurrencyCodereports and that a payment naming none (an older host) is created in; it is shown as "Default currency". A refund checksRefundInstruction.Currencyagainst the currency of the payment and refuses a difference before anything is sent. - Chargebacks. A paid payment Mollie says was charged back for all of its amount (
amountChargedBack) is reported asGatewayPaymentState.Reversed, so the host reverses the payment and reopens the invoice. A part charged back leaves the payment paid, because the state has no partial form, and logs a warning. An amount charged back that cannot be read, or is in another currency, is pending and credits nothing. A stored charge that was charged back is declined. - Refunds that finish later, through
IPaymentRefundStatePlugin.StartRefundAsyncanswers completed for arefundedrefund and pending forqueued,pendingandprocessing, so the host keeps the amount reserved, andGetRefundStateAsyncreadsGET /v2/payments/{id}/refunds/{refundId}until the refund is completed or failed (failed,canceled). A status the plugin does not know is raised, never reported as done. - Tests that record every log line of create, status, refund (refusals and transport failures) and the webhook, and prove that no API key, Mollie error text, payer email, mandate or customer detail reaches a log.
Changed
- The SDK pin moves from 3.11.0 to 3.19.0 and
minHostVersionfrom 0.10.0 to 0.12.0, the first Hostpanel that ships it; the manifest names the package insdkPackageVersion. RefundAsync(RefundInstruction, ...)now goes throughStartRefundAsyncand answers the same reference as before.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «mollie» и выберите версию 1.3.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.