Заметки к выпуску
The first release; the version in plugin.json and the project is 1.0.0, and the release tag is v1.0.0.
Added
- GoCardless payment gateway plugin published by Innovayse, built against
Hostpanel.Sdk3.5.0, manifest version 2. - Payments through a GoCardless billing request and its hosted page flow: the payer pays by instant bank payment or, when the fallback setting is on and the bank cannot do that, by bank debit. The payer is redirected only to the hosted page host of the configured environment, and the billing request id is the gateway order id. A retry of the same create request meets its own earlier billing request, and a retry of a refund its own earlier refund, through the idempotency key.
- A status read through the billing request and the payment it created.
Paidonly when GoCardless says the payment isconfirmedorpaid_out, with the payment id as transaction id, a known currency and a known positive amount.pending_customer_approval,pending_submission,submittedand unknown statuses arePending;cancelled,customer_approval_denied,failedandcharged_backareDeclined. Only a billing request GoCardless says does not exist (404 withinvalid_api_usageandresource_not_found) is declined; a payment that fails or is charged back is also logged as a warning; every other refusal and every outage is raised. - Full and partial refunds of a confirmed or paid out payment, safe to retry: a digest of the host's refund id is the
Idempotency-Keyand the id itself is kept in the refund's metadata, the new refunded total goes to GoCardless astotal_amount_confirmation, a retry is recognised by the refunded total GoCardless reports, and a total that cannot be read throws and sends nothing. The overload without a refund id is not supported. - Typed settings: mode, sandbox and live access tokens (secrets, trimmed and checked against the mode), currency (EUR or GBP) and the bank debit fallback, with English, Russian and Armenian texts. The sandbox and the live environment have their own API host, token and hosted page host, and never mix.
- No webhook, no route, no capability and no external origin: the SDK gives a callback no way to settle a payment, so settlement is the host's polling of the status.
- Status words are read by exact match with the documented snake case spelling, a payment description is cut to 100 characters, and a failure of a call carries a kind (vendor error, unreadable body, timeout, transport, redirected away, rate limited for 429, server error for 5xx), no inner exception, and only error codes of the shape
[a-z0-9_]{1,64}, never GoCardless free text. The plugin's own refusals (a payer address that is not a hosted page, a refund that did not happen) are a separate failure type. - Every call is limited to 30 seconds and an answer is read only up to 1 MiB, with the headers read first. An answer from another host than the one called is never read.
- Amounts are whole numbers of minor units that fit a 32-bit integer, as GoCardless takes them; nothing is rounded and an amount outside the range is refused.
- A billing request unknown under the token of the mode but known under the token of the other mode is raised as a mode mismatch.
- The plugin icon, the cover and the screenshots show the official GoCardless logo from the GoCardless brand guidelines, unaltered.
- Marketplace listing: a cover and three screenshots of 1600 by 1000 pixels in
screenshots/, with their SVG sources indesign/, shipped in the package.PluginListingTestspins the tags and the images. - Unit tests over a fake HTTP handler, a layer architecture test, the house rules in
rules/,ci.ymland a signedrelease.yml.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «gocardless» и выберите версию 1.0.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.