Release notes
A minor release. The SDK moves from 3.11.0 to 3.19.0 and minHostVersion is now 0.12.0, the first host release that ships it. plugin.json now names sdkPackageVersion 3.19.0.
Added
- A payment that was paid and then refunded at NOWPayments is now reported as
Reversed(GatewayPaymentState.Reversed, SDK 3.19.0), so the host takes the recorded payment back and reopens the invoice. The notification that carries the refund already asks the host to read the order. A refund of a payment that never finished is still only declined, because the host recorded nothing. The plugin store entry of an order keeps a seventh field for this; entries written by earlier versions are still read. - The setting
accept_any_currency(off by default). On, the plugin accepts an invoice in any currency it offers and prices the NOWPayments invoice in the currency the host states (PaymentInstruction.Currency, SDK 3.19.0). Off keeps the one currency of thecurrencysetting. A host that states no currency is charged in thecurrencysetting as before. - With a fixed coin (
pay_currency) the plugin asksGET /v1/min-amountbefore it creates the invoice and refuses an amount below the coin's smallest payment, with a message that names the coin and the minimum. The lookup is advisory: when NOWPayments cannot answer it the invoice is created anyway. - A failed payment is declined with
PaymentFailureReason.ProcessingError(SDK 3.19.0), so the host can show the client a message.
Changed
- The plugin is built on
Hostpanel.Sdk3.19.0, and the README, the manifest and the release tests follow.
Not done, with the reason
Recorded in the amendment of issue 11: invoice lifetime (the invoice call has no such field), recovery of a lost first notification through the payment list (needs a JWT from the account e-mail and password), payouts as refunds (need the payer's wallet, a JWT, two-factor verification and an allowed address, none of which the host passes), subscriptions (the SDK has no recurring contract) and the sandbox case parameter (it belongs to the payment call, not to the invoice call).
Install this version
- 1
Open the plugin list in your Hostpanel admin.
- 2
Install the plugin with the id "nowpayments" and choose version 1.4.0.
- 3
Hostpanel downloads this signed package from the registry and checks the signature and the SDK version before it loads.