chameleon-system-private/klarna-payments-bundle
Requires
- ext-curl: *
- chameleon-system/pkgshop: ~8.0.0
- chameleon-system/pkgshoppaymentipn: ~8.0.0
- chameleon-system/pkgshoppaymenttransaction: ~8.0.0
- 8.0.x-dev
- 8.0.45
- 8.0.44
- 8.0.43
- 8.0.42
- 8.0.41
- 8.0.40
- 8.0.39
- 8.0.38
- 8.0.37
- 8.0.36
- 8.0.35
- 8.0.34
- 8.0.33
- 8.0.32
- 8.0.31
- 8.0.30
- 8.0.29
- 8.0.28
- 8.0.27
- 8.0.26
- 8.0.25
- 8.0.24
- 8.0.23
- 8.0.22
- 8.0.21
- 8.0.20
- 8.0.19
- 8.0.18
- 8.0.17
- 8.0.16
- 8.0.15
- 8.0.14
- 8.0.13
- 8.0.12
- 8.0.11
- 8.0.10
- 8.0.9
- 8.0.8
- 8.0.7
- 8.0.6
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 7.1.x-dev
- 7.1.138
- 7.1.137
- 7.1.136
- 7.1.135
- 7.1.134
- 7.1.133
- 7.1.132
- 7.1.131
- 7.1.130
- 7.1.129
- 7.1.128
- 7.1.127
- 7.1.126
- 7.1.125
- 7.1.124
- 7.1.123
- 7.1.122
- 7.1.121
- 7.1.120
- 7.1.119
- 7.1.118
- 7.1.117
- 7.1.116
- 7.1.115
- 7.1.114
- 7.1.113
- 7.1.112
- 7.1.111
- 7.1.110
- 7.1.109
- 7.1.108
- 7.1.107
- 7.1.106
- 7.1.105
- 7.1.104
- 7.1.103
- 7.1.102
- 7.1.101
- 7.1.100
- 7.1.99
- 7.1.98
- 7.1.97
- 7.1.96
- 7.1.95
- 7.1.94
- 7.1.93
- 7.1.92
- 7.1.91
- 7.1.90
- 7.1.89
- 7.1.88
- 7.1.87
- 7.1.86
- 7.1.85
- 7.1.84
- 7.1.83
- 7.1.82
- 7.1.81
- 7.1.80
- 7.1.79
- 7.1.78
- 7.1.77
- 7.1.76
- 7.1.75
- 7.1.74
- 7.1.73
- 7.1.72
- 7.1.71
- 7.1.70
- 7.1.69
- 7.1.68
- 7.1.67
- 7.1.66
- 7.1.65
- 7.1.64
- 7.1.63
- 7.1.62
- 7.1.61
- 7.1.60
- 7.1.59
- 7.1.58
- 7.1.57
- 7.1.0
- 7.0.23
- 7.0.22
- 7.0.21
- dev-main
- dev-65797-paypal-checkout-7.1.x
- dev-65797-paypal-button-integration
- dev-66480-paypal-button-integration-wip
- dev-64817-update-tag-manager-bundle
- dev-64992-campaign-tracking-bundle
README
This bundle integrates Klarna payment methods (direct debit, bank transfer, credit card, pay later, instalments, loan).
Installation
- Register the bundle in
AppKernel::registerBundles():
new \ChameleonSystem\KlarnaPaymentsBundle\ChameleonSystemKlarnaPaymentsBundle(),
- Run:
$ composer require chameleon-system/klarna-payments-bundle "~8.0.0"
(use matching version for your core version)
- Run the Chameleon 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/