chameleon-system/klarna-payments-bundle
Requires
- ext-curl: *
- chameleon-system/pkgshop: ~7.1.0
- chameleon-system/pkgshoppaymentipn: ~7.1.0
- chameleon-system/pkgshoppaymenttransaction: ~7.1.0
README
This bundle integrates Klarna payment methods (direct debit, bank transfer, credit card, pay later, instalments, loan).
Installation
Run:
$ composer require chameleon-system/klarna-payments-bundle "~7.1.0"(use matching version for your core version)
Add the bundle to your Appkernel.php
new \ChameleonSystem\KlarnaPaymentsBundle\ChameleonSystemKlarnaPaymentsBundle(),
- Run the database updates.
- Add the payment type "Klarna Payments" to your relevant Shipping Cost Groups
- Upload an icon for the payment (you may use the icon provided in Resources/public/images/klarna.png)
- Configure the icon for the payment in the backend
- Go to Klarna Playground and live dashboard and create API credentials
- Configure these credentials in the payment configuration of the backend (Payments/Zahlungsanbieter -> Klarna Payments -> Tab: Paymenthandler -> KlarnaPayments -> Config Parameter)
- If you want to use "capture on shipment", go to Payments/Zahlungsanbieter -> Klarna Payments -> Tab: System -> Configuration and set the option to "1" (true) Additionaly you should change the description of the payment method to inform the buyer about the late capture
- Set environment to development for local testing
API Documentation
https://docs.klarna.com/klarna-payments/integrate-with-klarna-payments/
B2B
If you want to use Klarna with B2B customers, you need an account at https://www.billie.io/ and connect the payment in the Klarna backend.
Open to the Config Parameters in the Chameleon Backend (see Nr. 8 above) and set the b2bActive parameter to "1".
The payment will not be available if the billing address is a b2b address (has company or vat it filled) and the B2B option is not active. Beware! Activation of B2B option without having a contract with Billie will lead to non functioning payment with an "internal error" from the Klarna API.
Styling
It is possible to style the widget colors: https://docs.klarna.com/klarna-payments/in-depth-knowledge/additional-features/
Todos
- Integrate a mapper for On Site Messaging: https://docs.klarna.com/on-site-messaging/integrate-with-on-site-messaging/integrate-using-javascript-library/step-2-install/