Klarna payment method for Hyvä React Checkout
- React Checkout is installed and setup.
- Klarna for Magento 2 is installed and setup as per the documentation from Klarna
- Klarna is enabled and configured in the Magento 2 store backend under
Stores > Configuration > Sales > Payment Methods > Klarna > API configuration
.
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.
Below are the list of payment method currently covered by this integration
- klarna_pay_later
- If you need information on the build process of the React Checkout, then you can read more about it here.
- If you want to know more about how Hyvä Checkout helps you to integrate any payment methods, then read more about it here.
- The official documentation of Hyvä React Checkout
- Klarna official documentation
Special thanks to Onecode P.C for building the initial release of this Klarna integration for the Hyvä React Checkout!
BSD 3-Clause License. Please see License File for more information.