Skip to content

hyva-themes/magento2-react-checkout-klarna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hyvä Themes - React Checkout Klarna

Hyvä Themes

hyva-themes/magento2-react-checkout-klarna

Klarna payment method for Hyvä React Checkout

Prerequisites

  1. React Checkout is installed and setup.
  2. Klarna for Magento 2 is installed and setup as per the documentation from Klarna
  3. Klarna is enabled and configured in the Magento 2 store backend under Stores > Configuration > Sales > Payment Methods > Klarna > API configuration.

How to use it with Hyvä Checkout?

Add below code in your package.json.

File: src/reactapp/package.json

"config": {
    "paymentMethodsRepo": {
      "klarna": "git@github.com:hyva-themes/magento2-react-checkout-klarna.git"
    }
},

With this code in package.json and running npm install, then you are all set. This repo will be copied into the React Checkout and configured correctly.

Finally, we need to build the app again. For this, you need to run npm run build from the root directory of React Checkout react app (src/reactapp). After this, if you navigate to the checkout page from your site, then you will see the Amazon Pay payment option you have configured in the above step.

Klarna payment methods covered

Below are the list of payment method currently covered by this integration

  • klarna_pay_later

Documentation

Credits

Special thanks to Onecode P.C for building the initial release of this Klarna integration for the Hyvä React Checkout!

License

BSD 3-Clause License. Please see License File for more information.