Թողարկման նշումներ
Added
- First release: a Mercado Pago Checkout Pro payment gateway built on
Hostpanel.Sdk3.5.0. - Start a payment: a checkout preference for one invoice amount, with the order number as the external reference and an expiry seven days after it is made. The payer is sent only to an https address on a Mercado Pago domain.
- Read the status: the payments of the order are searched by external reference. An order is paid only when exactly one payment took money and it is the order's own, of the configured mode, in a known currency and with a positive amount that is exactly a whole number of minor units. Otherwise the status stays pending and a warning is written. Status words are matched exactly as documented. A failed attempt keeps the order pending while the checkout page can still be paid; once every checkout page of the order has expired and no payment can still end in money, the order is declined. A payment refunded in full is declined, as the host contract says.
- Refunds with an idempotency key made from the host's refund id. A refund that already happened is found from the refunded total and not sent again; the id of that earlier refund is read from the refunds of the payment and answered, and when exactly one accepted refund of the amount cannot be found the call throws. A total that cannot be read exactly sends nothing, and a refund id that is not one visible ASCII token of at most 64 characters is refused.
- Decimal amounts are converted exactly: no rounding and no overflow.
- Test and production credentials are kept apart before any call: one token setting per mode, a production token required in live mode, one token in both settings refused, and a production-looking token checked against the account it belongs to when a payment is started (it must be a test user in test mode and must not be one in live mode).
- Failures are sorted into kinds (unauthorized, rate limited, unavailable, rejected, unexpected answer, incomplete list, refund not done, refund unidentified). The error code and the request id of a failure are shown only as short identifiers, and a transport failure carries no inner exception.
- Answers are bounded and checked: each call has a 30 second timeout on the injected clock, an answer is read only up to 4 MiB, an answer that did not finally come from the API host over https is refused, property names are matched with their case, and a list with an empty entry is refused.
- The preference search is read with its own shape (a top level total, not a paging block) and its own completeness check. A checkout page counts as expired only one hour after its expiry, and several payments all refunded in full end an order once its pages have expired.
- No webhook: payments settle through the host's status polling, which reads Mercado Pago's own state each time.
- Settings: mode, test access token, live access token and currency, with English, Russian and Armenian labels.
- Marketplace listing: a cover and three screenshots in
screenshots/at 1600 by 1000, with their editable sources indesign/. - The plugin icon, the cover and the screenshots use the official Mercado Pago logo, with its shapes and colours unchanged.
Տեղադրել այս տարբերակը
- 1
Բացեք պլագինների ցանկը Hostpanel-ի ադմինում։
- 2
Տեղադրեք «mercadopago» նույնացուցիչով պլագինը և ընտրեք 1.0.0 տարբերակը։
- 3
Hostpanel-ը ռեեստրից ներբեռնում է այս ստորագրված փաթեթը և բեռնելուց առաջ ստուգում ստորագրությունը և SDK-ի տարբերակը։