Magento Standard Checkout plugin

The Magento Standard Checkout plugin lets you accept card payments directly within Magento checkout, offer Apple Pay on supported browsers and devices, and expose selected Alternative Payment Methods through Viva Smart Checkout.

Overview

This plugin replaces the legacy Magento Smart Checkout plugin. Card payments are handled directly on the Magento checkout page.

Requirements

The currency list above describes the currencies accepted by this plugin build. Availability can still depend on your Viva account, payment method and market. Orders in a currency outside this list do not show the Viva payment methods at checkout.

Features

User experience

Screenshots

The following image references match the customer-facing and admin areas described in this guide.

Embedded card payment form:
Embedded card payment form

Real-time card validation and scheme detection:
Real-time card validation

3D Secure challenge displayed in the checkout modal:
3D Secure challenge modal

Alternative Payment Method at checkout:
APM at checkout

Viva Smart Checkout with the selected APM:
Smart Checkout redirect

Apple Pay at Magento checkout:
Apple Pay at checkout

Decline message shown to the customer:
Intelligent decline message

Supported payment methods

Alternative Payment Methods
BANCOMAT Pay Bancontact QR BLIK
Bluecode EPS iDEAL
IRIS Klarna MB WAY
MobilePay Online MULTIBANCO P24 (Przelewy24)
PayU Satispay Swish
Trustly WeChat Pay
A payment method must be available and activated for your Viva account before you enable it in Magento. Country and account eligibility can vary by payment method. See the Payment Methods page for current Viva availability.

Before you start

Step 1: Create a Viva account

If you do not already have a Viva account, create an account.

Step 2: Prepare your credentials

This plugin uses OAuth authentication with a Client ID and Client Secret. The credentials are configured in two separate groups:

  1. Viva.com Native Checkout credentials

    • Used for embedded card payments, acquiring operations and native Apple Pay.
    • Live and demo credentials are stored separately.
      Admin native credentials configuration
  2. Viva.com Smart Checkout credentials

    • Used for Alternative Payment Methods that redirect to Smart Checkout.
    • These are stored in the separate Viva.com Smart Checkout (shared credentials) section.
    • Live and demo credentials are stored separately.
      Admin smart checkout credentials configuration

The plugin uses the main Test Mode setting to switch both integrations between demo and live environments.

Please do not assume that one OAuth credential pair has every scope required by both Native Checkout and Smart Checkout. Use credentials that Viva has enabled for the API scopes required by each configuration section.

Step 3: Create a payment source

Follow the payment source guide to create the source or sources required for your account.

For Smart Checkout return handling, configure these URLs on the relevant online payment source:

Keep the default Viva return parameter names unless you also update the plugin. The controllers expect:

Record the Source Code for use in Magento Admin.

You can add your company logo when you create or edit the Viva payment source. This helps customers recognise your business on Viva-hosted payment pages. See the adding your brand logo guide for the current requirements.

Step 4: Choose your payment methods

Choose the Alternative Payment Methods you want to expose in Magento and confirm that each method is activated for your Viva account and Smart Checkout source before enabling it in Magento.

Viva configuration

Setup instructions

Step 1: Add the plugin to Magento

  1. Download the Magento Standard Checkout plugin.
  2. Extract the archive.
  3. Copy the module directory, including registration.php, to: app/code/Redkiwi/VivaWallet

  4. From the Magento root directory, run:

    • Enable the module: bin/magento module:enable Redkiwi_VivaWallet
    • Apply setup changes: bin/magento setup:upgrade
    • Compile dependency injection: bin/magento setup:di:compile
    • Flush the cache: bin/magento cache:flush
  5. For production deployments, deploy static content as required by your Magento deployment process: bin/magento setup:static-content:deploy -f

  6. Confirm that Magento sees the module: bin/magento module:status Redkiwi_VivaWallet

Step 2: Configure card payments

  1. In Magento Admin, go to Stores > Configuration > Sales > Payment Methods.

    Viva configuration
  2. Open the Viva.com section.

    Viva configuration
  3. Configure the following fields:

    • Enabled: Set to Yes to enable embedded card payments.
    • Title: Customer-facing payment method name.
    • Test Mode: Set to Yes for demo or No for live.
    • Client ID / Client Secret: Live OAuth credentials used when Test Mode is disabled.
    • Demo Client ID / Demo Client Secret: Demo OAuth credentials used when Test Mode is enabled.
    • Source Code: Live Viva payment source code.
    • Demo Source Code: Demo Viva payment source code.
    • Debug Mode: Enables detailed module logging in var/log/vivawallet.log.
    • Pre-select on Checkout: Automatically selects and expands the card method when the payment step opens. Default: Yes.
    • Sort Order: Controls where the method appears in the checkout payment list.
    • Payment from Applicable Countries / Payment from Specific Countries: Optional billing-country restrictions.
  4. Save the configuration and flush the cache.

Debug Mode can record detailed API payloads and responses. Enable it only when needed for troubleshooting and protect access to Magento log files.
Saved Cards / Vault is disabled and will be available soon.

Step 3: Configure Alternative Payment Methods

  1. In Payment Methods, open Viva.com Smart Checkout (shared credentials).

    Viva configuration

  2. Enter the Smart Checkout credentials for the active environment. Please note, test mode is inherited from the main Viva.com section.:

    • Smart Checkout Client ID
    • Smart Checkout Client Secret
    • Smart Checkout Source Code
    • Demo Smart Checkout Client ID
    • Demo Smart Checkout Client Secret
    • Demo Smart Checkout Source Code
  3. Open each Smart Checkout payment method you want to offer and configure:

    • Enabled
    • Title
    • Sort Order
    • Payment from Applicable Countries
    • Payment from Specific Countries

Viva APM configuration

  1. Save the configuration and flush the cache.

Step 4: Configure Apple Pay

Viva.com - Apple Pay runs on the Magento checkout page and reuses the credentials and Source Code from the main Viva.com card section.

  1. Enable Apple Pay for the Viva source used by the card integration.
  2. In Magento Admin, open Payment Methods > Viva.com - Apple Pay.
    Apple Pay configuration
  3. Configure the available fields:

    • Enabled: Set to Yes to enable the method.
    • Title: Customer-facing payment method name.
    • Apple Pay Merchant Identifier (optional): Used by the plugin’s Payment Request path for compatible third-party browsers. Use the identifier associated with your Viva/Apple Pay setup. Leave it blank if you are only using the Apple Pay session path.
    • Sort Order: Position in the checkout payment list.
    • Payment from Applicable Countries / Payment from Specific Countries: Optional billing-country restrictions.
    • Domain Registered With Viva: Read-only status managed by the module.
  4. Save the configuration and flush the cache.

When Apple Pay is enabled, the module attempts to register the storefront domain with Viva. It also serves the Apple domain-association content at:

https://<your-domain>/.well-known/apple-developer-merchantid-domain-association

Apple Pay availability depends on the browser, device, market, Apple Pay configuration and merchant participation. Compatible third-party browser payments require an Apple Pay-capable iPhone or iPad and supported Apple software.
The current domain-registration flag is saved at Magento’s default configuration scope even though Apple Pay settings can be configured at Website scope. If you run multiple websites on different storefront domains, validate domain registration for every website before enabling Apple Pay in production.

Refunds

Card payments are configured for online full and partial refunds through Magento credit memos.

To issue a card refund:

  1. Open the paid order in Magento Admin.
  2. Open the invoice.
  3. Create a credit memo for the full amount or the amount to be refunded.
  4. Submit the refund online.

Credit memo in Magento Admin:
Credit memo in admin

Magento handles the order and invoice state changes after a successful gateway refund.

Multisite and configuration scope

The plugin can be installed once and configured differently per Magento Website. The payment configuration fields are available at Default and Website scope, but not at Store View scope in the supplied system.xml.

To configure a website separately:

  1. Open Stores > Configuration > Sales > Payment Methods.
  2. Change the scope selector to the required Website.
    Configuration scope selector in Magento Admin:
    Multisite configuration
  3. Clear the inherited setting for the fields you want to override.
  4. Enter the credentials, Source Code and payment-method settings for that Website.
  5. Save and flush the cache.

Troubleshooting

bin/magento setup:static-content:deploy -f

Upgrading the plugin

  1. To check the installed Viva plugin version, open: app/code/Redkiwi/VivaWallet/composer.json The installed version is shown in the version field.
  2. Review the Release Notes for a newer Magento plugin release.
  3. Download the current plugin archive and replace the contents of app/code/Redkiwi/VivaWallet with the new release.
  4. Run:

    • bin/magento module:enable Redkiwi_VivaWallet
    • bin/magento setup:upgrade
    • bin/magento setup:di:compile
    • bin/magento cache:flush
    • For production deployments: bin/magento setup:static-content:deploy -f

Get Support

If you need help with Viva account activation, payment-method eligibility or credentials, see Contact & Support.

For plugin issues, include the Magento version, PHP version, plugin release version, affected payment method, Viva correlation/event ID when available, and relevant entries from var/log/vivawallet.log. Remove secrets and sensitive payment data before sharing logs.