Заметки к выпуску
Added
- First release: a 2Checkout (Verifone) payment gateway built on
Hostpanel.Sdk3.5.0. - Start a payment: a signed hosted ConvertPlus buy link for one dynamic product, with the host's order number as the external reference. The amount, currency and reference are signed with the buy link secret word, which is never part of the link.
- Read the status from the REST API 6.0 orders search, authenticated with the
X-Avangate-Authenticationheader. A payment is paid only when exactly one complete order carries the requested reference, the configured merchant code, the test or real flag of the mode, the configured currency and a positive amount that fits the currency without rounding. Anything unclear stays pending with a warning. - Refunds by amount on the complete order. The host's refund id is recorded in the plugin store before and after the call, so a retry never refunds twice and an unclear earlier attempt is raised without sending anything.
- A refund recorded as started that an earlier attempt left unclear is sent again only when an administrator lists that attempt (
refund-id@attempt) in therefund_release_entriessetting after checking the order in the 2Checkout account. - A refund that 2Checkout definitely refused (a client error other than 408, 409 and 429, or a
falseanswer) is recorded as refused and the next retry sends it again as the next attempt, without an administrator. Everything unclear, including a conflict, an answer from another address and a connection cut while the answer is read, keeps the started record and blocks the retry. - An answer from any address other than the 2Checkout API, such as the target of a followed redirect, is refused unread.
- The overload of the refund without a refund id keeps no record in the plugin store.
- The error code of a failed call is kept only as a plain code of capital letters, digits and underscores, an answer is read up to 4 MiB, and a full page of orders with no total is raised as incomplete.
- No webhook: payments settle through the host's status polling, which reads 2Checkout's own state each time.
- Settings: mode (test or live), merchant code, buy link secret word, API secret key, currency and refund reason, 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 2Checkout logo from the 2Checkout documentation site, with its shapes and colours unchanged.
Установка этой версии
- 1
Откройте список плагинов в админке Hostpanel.
- 2
Установите плагин с идентификатором «2checkout» и выберите версию 1.0.0.
- 3
Hostpanel скачивает этот подписанный пакет из реестра и проверяет подпись и версию SDK перед загрузкой.