Welcome to the Laravel Klarna Payments package! This package provides seamless integration between your Laravel application and Klarna Payments, allowing you to easily implement Klarna's payment solutions.
- Simple Integration: Easy setup and integration into your Laravel application.
- Customizable: Extensive configuration options to tailor Klarna payment features to your needs.
- Support for Klarna Features: Supports Klarna's HPP
- PHP >= 7.4
- Laravel >= 8.0
You can install the package via composer:
composer require caesardev/laravel-klarna-paymentsPublish the configuration file with:
php artisan vendor:publish --provider="CaesarDev\LaravelKlarnaPayments\KlarnaServiceProvider"After publishing, you can find the configuration file at config/klarna.php. Here you can specify your Klarna API credentials and other settings.
Here is a basic example of how to use the Laravel Klarna Payments in your project:
use CaesarDev\LaravelKlarnaPayments\KlarnaPayment;
$payment = new KlarnaPayment();
$payment->prepare($orderDetails, $amount);
$payment->create();
$payment->sendToCustomer();Contributions are welcome, and will be fully credited. We accept contributions via Pull Requests on Github.
- Add tests for new features and bug fixes
- Document any change in behaviour - Make sure the
README.mdand any other relevant documentation are kept up-to-date. - One pull request per feature - If you want to do more than one thing, send multiple pull requests.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The Laravel Klarna Payments package is open-sourced software licensed under the MIT license.