Download the PHP package limetools/swedbank without Composer

On this page you can find all versions of the php package limetools/swedbank. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package swedbank

Swedbank Laravel Payment API

License: MIT PHP Version GitHub

A Laravel package for integrating with Swedbank Payment Initiation API V3. This package provides a clean and easy-to-use interface for initiating payments, checking payment status, and retrieving payment providers using Swedbank's Payment Initiation API.

Features

Requirements

Installation

Via Composer

You can install the package via Composer:

Publish Configuration

Publish the configuration file:

This will create a config/swedbank.php file in your Laravel application.

Configuration

Environment Variables

Add the following environment variables to your .env file:

Important: When storing the private key in .env, make sure to:

Example:

Usage

Basic Usage

The package provides a SwedbankPaymentApi class that can be used in several ways:

Using Dependency Injection

Using the Facade

Using the Service Container

Step-by-step integration guide

This is a minimal, end-to-end example to get you from a fresh Laravel install to a working Swedbank payment redirect.

1. Install the package

a) From GitHub (recommended now)

In your application composer.json:

Then install:

2. Publish and configure

Publish the config file:

This creates config/swedbank.php.

Add environment variables to .env (start with sandbox):

Optionally, configure a log channel in config/logging.php:

3. Create routes

In routes/web.php:

4. Create a simple controller

Create app/Http/Controllers/SwedbankPaymentController.php:

This controller is intentionally simple; adapt it to your own Order model and domain logic.

Get Payment Providers

Retrieve a list of available payment providers:

Create Payment Initiation

Initiate a payment transaction:

Get Payment Status

Check the status of a payment:

Get Payment Initiation Form

Get payment initiation form data for a specific provider:

Complete Example

Here's a complete example of a payment flow:

API Reference

SwedbankPaymentApi Methods

getPaymentProviders(string $country, string $clientId, string $privateKey): array

Retrieves a list of available payment providers for the specified country.

Parameters:

Returns: Array of provider information

createPaymentInitiation(array $paymentData, string $clientId, string $privateKey): string

Creates a payment initiation and returns the redirect URL.

Parameters:

Returns: Redirect URL string

getPaymentStatus(string $statusUrl, string $clientId, string $privateKey): array

Retrieves the current status of a payment.

Parameters:

Returns: Payment status array

getPaymentInitiationForm(string $bic, array $paymentData, string $clientId, string $privateKey): array

Gets payment initiation form data for a specific provider.

Parameters:

Returns: Form data array

EveryPay integration

This package also includes a lightweight integration with the EveryPay Payment Integration API v4 (see the official docs at https://support.every-pay.com/apidoc/main/ and the OpenAPI spec at https://support.every-pay.com/apidoc/main/openapi.yaml).

Configuration

After publishing the config (php artisan vendor:publish --tag=swedbank-config), you will also get an everypay.php config file:

Example .env for demo:

Basic usage

The EveryPay client is exposed as LimeTools\Swedbank\EveryPayApi and is bound in the container, so you can type‑hint it:

You can also resolve the client manually:

EveryPayApi methods

Logging

The package supports comprehensive logging. Configure logging in your config/swedbank.php:

Make sure to add the swedbank channel to your config/logging.php:

Testing

To test the package, you can use Swedbank's sandbox environment:

  1. Set SWEDBANK_ENVIRONMENT=sandbox in your .env
  2. Configure sandbox credentials
  3. Use the sandbox endpoints for testing

Error Handling

The package throws exceptions when API calls fail. Always wrap API calls in try-catch blocks:

Security

Support

For issues, questions, or contributions, please visit the GitHub repository.

License

This package is open-sourced software licensed under the MIT license.

Credits

This package is based on the official Swedbank Payment Initiation API V3 documentation.

Changelog

1.0.0


All versions of swedbank with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package limetools/swedbank contains the following files

Loading the files please wait ...