Search by

magebitcom / magento2-hyva-checkout-checkoutcom-payment

magebit

This module enables to use CheckoutCom_Magento2 module with Hyva checkout

Package info

github.com/magebitcom/magento2-hyva-checkout-checkoutcom-payment

Language:HTML

Type:magento2-module

pkg:composer/magebitcom/magento2-hyva-checkout-checkoutcom-payment

Statistics

Installs: 14 217

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 2

1.1.0 2026-12-02 09:57 UTC

README

Requirements

  • Magento 2.4 with Hyvä Checkout. The module is developed and tested with Hyvä Checkout 3 and Magewire 3; its Magewire components only use APIs that Magewire 1 also provides.
  • CheckoutCom_Magento2 (checkoutcom/magento2) 7.6.0 or newer. 7.6.0 is the first release whose Apple Pay merchant validation (checkout_com/applepay/validation) only calls Apple's Apple Pay gateway hosts; earlier releases post the merchant certificate to any URL given in the request.

Installation

  1. Install CheckoutCom_Magento2
  2. Install Compatability Module by running
composer require magebitcom/magento2-hyva-checkout-checkoutcom-payment
  1. Enable Module
bin/magento module:enable Magebit_CheckoutComPayment && bin/magento setup:upgrade

Feature Coverage

  • Card Payments (Multiple iframes)
    • Vault
  • Google Pay
    • Checkout Page
    • Cart
    • Minicart
  • Apple Pay
    • Checkout Page
    • Cart
    • Minicart
  • Alternative payment methods
    • MB WAY

Functionality that is currently not supported:

  • Adding a new Stored Card from My Account -> Stored Payment Methods

Configurations that currently are not supported:

  • Configuration -> Global Settings -> Default Active Method
  • Card Payments -> Display Card Icons

Payment methods the currently are not supported:

  • Klarna (NAS)
  • Paypal Payments (NAS)
  • MOTO Payments

Google Pay Payments: New Configuration Options

  • Button corner radius

This option sets the border-radius property of the button and is measured in pixels. There is no need to specify the CSS px unit in this option input field.

Apple Pay Payments: New Configuration Options

  • Button corner radius

This option sets the border-radius property of the button and is measured in pixels. There is no need to specify the CSS px unit in this option input field.

  • Button height

This option sets the height property of the button and is measured in pixels. There is no need to specify the CSS px unit in this option input field.

Alternative payments: New Configuration Options

  • Enable MB WAY Phone Validation

This option sets strict phone validation for MB WAY phone numbers (must be 9 digits and start with 9).

Webhook Configuration for MB WAY Payments

MB WAY payments require webhook configuration to properly handle payment status updates.

The extension use default endpoint URL: https://your-domain.com/checkout_com/webhook/callback which is the same for CheckoutCom_Magento2 module.

  • MB WAY Status Page Text

Text on waiting page while waiting on webhook events is customizable.

  • MB WAY Status Polling Interval

Option to adjust interval at which customer waiting page will look for webhook updates. Recommended value is 3-5 seconds.

  • Waiting page outcome

The waiting page stops polling and sends the customer back to the checkout with a message when Checkout.com reports a decline (a response code of 20000 or more) or a terminal event (payment_declined, payment_expired, payment_canceled, payment_voided, payment_capture_declined, payment_authentication_failed); the cart of that order (and only that cart) is restored, unless the customer has meanwhile started another cart with items: that cart is kept and the customer is told the old order was not paid. When the order is gone (with "Order action on failed payment" set to delete) the customer is sent to the cart with a message.

Only webhooks whose reference is the order number and, when the order has a Checkout.com payment id, whose payment id (data.id) is that id are considered. Captured or approved payments (or response code 10000) and declines or terminal events decide first; the configured additional success states (such as payment_pending) only count when no such event has arrived.

When no outcome arrives within 10 minutes of placing the order, the page stops polling and tells the customer that the payment is still awaiting confirmation and that they will receive an email once it is confirmed. The order and its cart are left as they are, because the payment can still be approved in the MB WAY app.

  • Payment accepted but the order could not be completed

If Checkout.com accepts a payment but the order cannot be saved afterwards, the module does not void or refund the payment and does not restore the cart; the cart is deactivated and the customer starts with a new, empty one, so it cannot be paid a second time. It logs a critical entry ("payment accepted but the order failed") with the payment id, reference, quote and order, and asks the customer not to pay again and to contact the store with the reference. Reconcile such payments in the Checkout.com dashboard.

  • Additional success states

By default, the waiting page will result in success page only if webhook with response code '10000' is received. This config makes it possible to also select "Payment Pending" and "Payment Capture Pending" as a signal to redirect customer to success page although after this redirect the order still might get automatically cancelled for example because of "Transaction has expired" error.

magebit (1)

Developed by Magebit. Have questions or need help? Contact us at info@magebit.com or on our website.