Download the PHP package pimcore/payment-provider-klarna without Composer
On this page you can find all versions of the php package pimcore/payment-provider-klarna. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pimcore/payment-provider-klarna
More information about pimcore/payment-provider-klarna
Files in pimcore/payment-provider-klarna
Package payment-provider-klarna
Short Description Pimcore Payment Provider - Klarna
License GPL-3.0+
Informations about the package payment-provider-klarna
Pimcore E-Commerce Framework Payment Provider - Klarna
Official Klarna Documentation
Test E-Mail Accounts
- [email protected] -> Open Invoice without selection of payment method
- [email protected] -> selection of payment methods: open invoice + credit cart
- [email protected] -> only credit card
Requirements
- klarna/checkout
Installation
Install latest version with Composer:
Enable bundle via console or extensions manager in Pimcore backend:
Configuration
The cart items
The Klarna provider implementation has currently no fallback to the default checkout manager to extract the cart items. So you have to pass them in the config array $config['cart']['items']
.
See under "1. Add the cart items" https://developers.klarna.com/en/at/kco-v2/checkout/2-embed-the-checkout
Example implementation:
Most important is the formatting of the prices, they have to be integers. For example: 20.00 €
has to become 2000
. Klarna only accepts integers because of avoiding rounding mistakes.
Here is a list for all accepted item fields: https://developers.klarna.com/en/at/kco-v2/checkout-api#cart-item-object-properties