Integrations
Magento 2 / Adobe Commerce

Magento 2 / Adobe Commerce

Version 1.1.1 · money contract 1.0. Monetary requests use canonical minor-unit strings; JSON numbers and explicit null amounts are rejected. Upgrade guide.

Install version 1.1.1 from lunixi-magento2-1.1.1.zip (opens in a new tab) with the matching SHA256SUMS (opens in a new tab). Use the built merchant ZIP and verify its checksum; historical 0.x verification records below apply only to those older files.

The existing Lunixi form opens on the merchant website by default. Hosted checkout remains optional and uses only the validated backend paymentPageUrl. Its opaque token can differ from the embedded token; the module never builds this URL from that token. Missing or legacy URLs keep embedded checkout available; hosted checkout stays on hold/reconciliation without a new intent or key. Existing attempts keep their saved mode, request body, profile and key. The official form/panel controls available methods and multi-card options.

Lunixi Payments 1.1.1 integrates the Magento Payment Adapter with the shared PHP SDK 1.6.0. Source: lunixi-magento2 (opens in a new tab). The target API line is 2.4.9; native acceptance was executed on Magento Open Source, not a licensed Adobe Commerce installation.

Install

Use the completed lunixi-magento2-1.1.1.zip and verify its SHA-256. Extract it at the store root; the module is under app/code/Lunixi/Payments. The ZIP bundles a namespace-isolated SDK and needs no module Composer restore.

php bin/magento module:enable Lunixi_Payments
php bin/magento setup:upgrade --safe-mode=1
php -d memory_limit=2G bin/magento setup:di:compile
php bin/magento setup:static-content:deploy en_US tr_TR
php bin/magento cache:clean

Maintainers can build from source with composer install --working-dir=tools --no-plugins --no-scripts followed by php tools/build.php. The build input is exactly lunixi/php-sdk:1.6.0; php tools/build.php /absolute/path/to/lunixi-php accepts a trusted checkout. Source checkouts must be built before enabling the module. GitHub source availability does not imply a module Composer-registry release or Adobe Marketplace listing.

Use Adobe's current supported PHP/database/service matrix and security patches for production. The exact local verification environment was PHP 8.4.1, MariaDB 11.8.6/InnoDB and official Magento Open Source 2.4.9 with 63 native modules, plus Lunixi. Search modules were omitted from that financial fixture. This is native service/database acceptance; full storefront browser testing, search and licensed Commerce features still need merchant staging validation. Adobe's current on-premises 2.4.9 matrix lists PHP 8.5 and MariaDB 12.3/MySQL 8.4. See system requirements (opens in a new tab).

Configure credentials

Set LUNIXI_MAGENTO_ENCRYPTION_KEY to base64 of a separately generated random 32-byte key on every web/cron instance. Keep a secure backup outside the database/web root. Losing or replacing it without migration makes previous profiles unreadable.

Open Stores → Configuration → Sales → Payment Methods → Lunixi Payments:

FieldPurpose
Enable LunixiEnables new checkout attempts
Merchant IDExpected identity in authenticated payment records
Merchant SECRET key identifierServer-side API key; determines TEST/LIVE
Ed25519 PKCS8 private keyBase64 DER, or PEM with literal \n separators
Webhook signing secretVerifies signed raw-body v2 deliveries
Redirect to pay.lunixi.comHosted form when enabled; embedded form when disabled
Authorize now, capture laterKeeps authorization pending until capture

Native encrypted fields mask saved credentials. Immutable profiles retain old credentials for refunds and reconciliation. Existing attempts keep their original profile, request, callback, base currency and display mode. The gateway origin is fixed to https://api-gateway.lunixi.com.

Register the displayed HTTPS webhook URL in the Lunixi panel for the right environment and payment-event subscriptions. It ends in lunixi/notification/webhook/profile/<profile-id>. Preserve historical endpoint profiles while old payments are active. Start with TEST credentials on a staging store.

Hosted or embedded form

Hosted checkout sends the buyer to paymentPageUrl. Embedded checkout loads only the fixed official https://cdn.lunixi.com/lunixi-checkout.min.js bundle and mounts the existing Lunixi form. Customer/session order ownership is checked before browser-token access. Return pages never decide payment success.

Methods, installments, insurance and split eligibility are managed in the Lunixi panel. No duplicate method-filter settings are present. Product availability still requires merchant/form activation and suitable product context. The module never collects raw card data or renders gateway-returned HTML. Use HTTPS with trusted proxy headers and a CSP allowing the official form origins.

Verified settlement

Amounts use the persisted order base currency/base grand total in exact integer minor units; display-currency conversion stays in Magento. Additional installment fees require the persisted fingerprint in authenticated metadata and are recorded separately from the base basket.

Each intent has a durable reservation/key before network I/O. Uncertain responses preserve that key. The create response binds the actual paymentId and token. A lost response can recover through a signed event only if authenticated GET also proves the original opaque reservation. The module has no automatic attempt-reset route; FAILED alone does not prove definitive failure.

The receiver verifies exact bytes, signed event/timestamp identity, freshness and replay conflicts. It looks up only a known order and queries the gateway with server credentials. Merchant, payment ID, order, currency, amount and full settlement counters must match. Inbox, native order, invoice, credit memo and notification-outbox writes share the native sales database transaction and exclusive per-order lock. InnoDB storage and one native sales/default connection are required and checked.

Verified evidenceNative result
Full captured settlementNative paid invoice through InvoiceService
Authorization without capturePending payment; no paid invoice
Complete balanced split parent without compensation/reconciliationMay complete the parent order
Captured split leg, partial/ambiguous state or promissory-note issuance aloneNo automatic fulfillment
Confirmed refund balanceNative monetary adjustment credit memo
Existing native fraud/manual hold or canceled orderHold is preserved

Split support in source does not assert gateway rollout or merchant eligibility. Promissory-note issuance is not collected cash. Reconciliation can apply a funded order after an explicit native unhold.

Para Transferi waiting period

A Para Transferi payment (havale, EFT or FAST) waits 1–3 business days until the money arrives. During that time the module keeps the order in Payment Review with an order comment, so Magento's pending-payment cleanup does not cancel it; the order cannot be invoiced or cancelled by hand while it waits. When the payment completes, the order is invoiced as usual; when it expires or fails, the order returns to Pending Payment and the normal cleanup applies.

If money arrives for an order that is already cancelled, the order stays cancelled and is never invoiced automatically. If Lunixi accepts a late transfer as another payment for the same order, the module puts the order on hold where Magento allows it. In both cases the module adds an order comment and an admin notification under System → Notifications; review the order, then fulfil it or refund the payment from the Lunixi panel.

Capture, refund, void and reconciliation

Under Sales → Orders, select Manage Lunixi payment. Dedicated native permission and CSRF/form-key POST checks guard capture, refund, void and reconciliation. These actions use addon-owned persisted operation IDs; retrying the same action retains its exact key/amount. The native standard online-action flags are disabled to avoid a gateway call returning before native financial bookkeeping.

A mutation response alone never confirms success. Authenticated settlement balances must prove the effect first. Lost responses can reconcile without another mutation. The SDK stops replay before the gateway's 24-hour cache boundary while preserving read-only reconciliation.

Refund input is in base currency. Partial/full refunds create monetary adjustment credit memos and do not fabricate returned item quantities or restock inventory. Handle product returns/RMA separately. The final base-basket refund includes any remaining verified fee. Do not create another native offline memo for the same refund.

Enable Magento cron. Separate rotating budgets poll unresolved orders and settled refund discovery. Notifications are delivered from a post-commit outbox. Uncertain mail sends remain review/sending for operator inspection; third-party event observers performing external effects need their own durable outbox.

Retention and limits

Keep lunixi_payment_* tables, historical profiles, Magento crypt key and the separate server key through refund/dispute retention. No financial-delete uninstall hook or destructive declarative whitelist is provided. Recurring payments, stored cards/vault, Hyvä/headless renderers, automated RMA/restocking and Adobe Commerce-only features are not implemented in 1.1.1.

The repository verification record lists executed native tests, dependency/security checks and limits. No live charge, marketplace approval or complete browser-store acceptance is claimed.

The native financial fixture applies checksum-pinned official July–October 2026 CE patches and the separate VULN-39341 fix. This does not clear the platform’s third-party Composer findings; see upstream audit scope (opens in a new tab). The canonical browser POST callback only uses a bounded field-ignoring same-origin 303 adapter; the subsequent GET restores native session/ownership checks.

Current acceptance boundary

An isolated official Magento Open Source 2.4.9 installation enabled 223 native modules on PHP 8.5.12, MariaDB 12.3.3 and OpenSearch 3.9.0. 23 native tests / 117 assertions passed. Real HTTPS exercised guest cart/item/billing, native quote-to-order, session/form-key checkout, on-site form container, optional exact backend redirect, informational POST return, foreign guest denial, signed webhook/GET reconciliation, replay/tamper and one native invoice. External Lunixi calls used a dedicated synthetic TLS provider through the real SDK signing/digest/idempotency layer. No admissible browser/card-entry, bank or 3DS test is claimed.

Historical 0.x release and verification records

These records refer to the named older artifacts. They do not validate the 1.0 packages or provide a compatible installation for the string money API.

Historical 0.x release evidence: Verified public merchant ZIP 0.1.4: lunixi-magento2-0.1.4.zip (opens in a new tab) · SHA256SUMS (opens in a new tab) · Release v0.1.4 (opens in a new tab). The CI-built installation package was downloaded; ZIP CRC, GitHub asset digest and public SHA256SUMS all match.

Historical 0.x release evidence: Public CI ZIP SHA256: 325625fdaf9f4680ebde1227354ab5c6116dd16d9c123ad7193a41bd96fcdcf2.

Historical 0.x release evidence: The final published-SDK 0.29.6 local rebuild retained all 339 files of the accepted candidate; no second functional run is claimed for that identical rebuild. Public CI bytes/checksum are verified separately above. Official security patch file hashes were checked, but the upstream platform dependency audit still reported 15 affected packages / 47 advisories and 4 abandoned packages. This is not a clean-platform security claim. Licensed Adobe Commerce/B2B, physical MSI inventory, RMA, headless and SMTP delivery were outside acceptance.