mspKlarna

Integration Klarna payment system with miniShop2 e-commerce solution, for CMS MODX.
Version 0.5.0-dev
Release date 07.27.2021
Downloads 7
Views 1 434
Warning! This component requires PHP version 7.2 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.8 !

Klarna payment system

Klarna is a leading global payment and shopping service providing smarter and more flexible shopping experiences for 90 million active consumers in more than 250,000 retail outlets in 17 countries. Klarna offers direct payments, post-delivery payment options and installments in a convenient one-click purchase mode that allows consumers to pay when and how they prefer.

Integration module capabilities

The mspKlarna module allows you to transfer information about the order from miniShop2 to the Klarna payment system, as well as process requests from the payment system, and change order statuses in accordance with the settings.

So far, only the option with a separate payment page (Hosted Page in terms of a payment system) is supported, since this most closely matches the miniShop operating model. It is possible to send a link to payment in email, since the getPaymentLink method is implemented.

In the module settings, you can additionally configure the region, the country of the payer, the payment currency and other parameters necessary to conclude a transaction between the online store and the customer.

News & Updates

Significant updates will be posted on the community site in the form of announcements, while detailed changes can always be found in the changelog.

mspKlarna — new payment module for miniShop2

Installation, configuration and use

Installation of the module is carried out through the manager part of your site on MODX. To install the module, go to the Packages section and then to the Installer of the main menu, connect the modstore.pro repository, select mspKlarna from the list of packages and follow the next steps the installer's instructions.

The module requires: PHP 7.4+, MODX 2.8+, installed auxiliary component msPaymentProps, as well as some PHP Extensions. A description of the installation and configuration of the component, help on all available configuration parameters, and an exhaustive list of dependencies are available in the detailed documentation.

You can quickly check the operation of the module using the Console (or modalConsole) component. Open the Console component window and execute the below code.

require_once MODX_CORE_PATH . 'components/mspklarna/KlarnaHandler.class.php';

if ($order = $modx->getObject(msOrder::class, 1)) { // 1 – id заказа
    echo (new KlarnaHandler($order))->getPaymentLink($order);
}

In response, you should receive a link that will open the payment window, or an error message if the module was configured incorrectly.

Technical support

To get technical support for this module, ask a question through the special form (available after authorization). Technical support is provided according to the rules of modstore, i.e. upon purchase you get 1 year of technical support and module updates. After a year, it is possible to renew by paying the license again.

Authorship and License

The module code is distributed under the MIT license, however, the distribution and sale of the finished module, in the form of an assembled package for the MODX CMS, is prohibited. When using parts of the code, retention of the license and attribution are required.

Module source author and distribution rights owner: Ivan Klimchuk.

Telegram | GitHub | Twitter | ivan@klimchuk.com | klimchuk.by | alroniks.com

0.5.0 (2021-07-26)

Features

  • full implementation DTOs for Merchant session response (bbe8970)
  • make possible to redirect to payment page after order submit (e41c467)
  • Session DTO implementation and getting merchant session (382b5d8)

0.4.0 (2021-07-25)

Features

  • connector for interacting with backend from front app side (968e760)
  • service now can get payment session and retrieve hosted payment page (ddc46a2)

0.3.0 (2021-07-23)

Bug Fixes

  • fix namespace links (56b447a)
  • updated list of settings, which have to be installed within the package (03702dc)

Features

  • getting klarna payment page, prototype (4cb36b7)
  • payment handler, simple implementation (a9045db)
  • service for communication with a gateway (5011ead)

0.2.0 (2021-07-19)

Features

  • build and install scripts (83e3dcc)
  • define settings in the builder script (fe0a76a)
  • handler draft and basic interface (38aecd0)
  • resolvers and validators (0f68858)
  • translations draft (c15d0ab)

0.1.0 (2021-07-19)

Features

  • add encryption helpers for the package (9400b40)