zaver / openmage-payment
Zaver Checkout payment module for OpenMage LTS (Magento 1): pay later, instalments, bank transfer and more through Zaver
Package info
github.com/zaver-io/zaver-openmage-plugin
Type:magento-module
pkg:composer/zaver/openmage-payment
Requires
- php: >=8.1
- zaver/sdk: ^3.2.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Payment module for OpenMage LTS (the maintained Magento 1): the customer pays with Zaver (pay later, instalments, bank transfer and the other methods your Zaver merchant account offers) and is sent back to the shop. Uses the Zaver PHP SDK and Zaver API v2.
Supports OpenMage 20.x on PHP 8.1 to 8.4 and is written for OpenMage 21 as well (no removed APIs, admin controllers under the standard admin route). Languages: EN, DE.
Installation
composer require zaver/openmage-payment
Then flush the cache and configure the module under System > Configuration > Sales > Payment Methods > Zaver. The setup guide walks through installation, every setting, a test order and going live, and describes what the module does in the checkout, on product pages and with orders (capture, refund, cancel, callbacks).
Supported features
- One payment method Zaver listing the Zaver payment methods offered for the billing country, currency and cart amount (cached in the checkout session for 10 minutes); hosted Zaver checkout (redirect) with all line items and idempotency keys for payment creation and captures.
- Zaver's status callbacks and the customer's return move the order: payment review, processing (paid), a paid invoice for the captured amount (settled), cancelled; a cancelled payment restores the cart.
- Capture when a shipment is created (optional setting) or with Capture Online on an invoice, full or partial with line items; online refunds from credit memos, full or partial with line items, auto-approved; cancelling or voiding the order cancels the Zaver payment.
- Refresh Zaver status on the order view with an order comment for every Zaver event; production and test credentials with a test mode switch at default or website scope; a dedicated Zaver log with download from the configuration.
- Credit texts (warning and representative example) under the consumer credit methods in the checkout; the financing badge or the loan calculator on product pages (setting), rendered by Zaver's script.
Notes
- The Zaver payment methods offered for a cart are fetched from Zaver when the checkout shows the payment step and kept in the checkout session for 10 minutes (per market, currency and amount), so the checkout does not call Zaver on every step.
- The module adds three columns to the order table (
zaver_payment_id,zaver_payment_status,zaver_line_item_ids) and stores the chosen Zaver method with the payment's additional information. - Captures and refunds are executed at Zaver in the currency of the payment request, which is the order currency. In a shop whose base currency differs from the order currency (for example EUR base, SEK display) Magento's own order comments "Captured amount of ... online" and "Refunded amount of ... online" show the amount converted to the base currency, as they do for every payment method. The module adds its own comment next to them with the amount Zaver captured or refunded, such as "Zaver capture ... of 594 SEK".
- Logging goes to
var/log/zaver.logwith a JSON context per entry; API errors include Zaver's message.