Download the PHP package swedbank-pay/swedbank-pay-sdk-php without Composer
On this page you can find all versions of the php package swedbank-pay/swedbank-pay-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swedbank-pay/swedbank-pay-sdk-php
More information about swedbank-pay/swedbank-pay-sdk-php
Files in swedbank-pay/swedbank-pay-sdk-php
Package swedbank-pay-sdk-php
Short Description The Swedbank Pay SDK for PHP simplifies integrations against Swedbank Pay's API Platform by providing native PHP interface towards the REST API.
License MIT
Homepage https://github.com/SwedbankPay/swedbank-pay-sdk-php
Informations about the package swedbank-pay-sdk-php
Swedbank Pay SDK for PHP
About
UNSUPPORTED: This SDK is at an early stage of development and is not supported as of yet by Swedbank Pay. It is provided as a convenience to speed up your development, so please feel free to play around. However, if you need support, please wait for a future, stable release.
The Swedbank Pay SDK for PHP simplifies integrations against Swedbank Pay's API Platform by providing native PHP interface towards the REST API.
This SDK includes the following payments options:
- Checkout
- Credit and debit cards (Visa, Mastercard, Visa Electron, Maestro etc).
- Invoice
- Swish
- Vipps
- MobilePay Online
- Trustly
Documentation
Documentation about Swedbank Pay's API Platform can be found on the Swedbank Pay Developer Portal for now.
Installation
The recommended way to install the Swedbank Pay SDK for PHP library is with Composer. You can also download the source code from one of the releases here on GitHub or simply clone this repository.
Composer
The preferred method is via Composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this SDK:
Examples
You can find examples in /tests directory or check out Swedbank Pay Core for WooCommerce code.
Using Online Payments v3.1
Version 6.3.0 introduces typed response support for Online Payments v3.1. The v3.1 surface
lives under the SwedbankPay\Api\Service\Paymentorder\V3 namespace and is fully additive —
existing v2 classes are unchanged.
Opt in by setting the API version on the Client (this switches the Content-Type header
to application/json;version=3.1):
For post-purchase actions (Capture, Cancel, Reversal), call setExpands(['financialtransactions', 'paid'])
when you want the freshly-created transaction inlined in the response:
Typed callback parsing:
All versions of swedbank-pay-sdk-php with dependencies
ext-json Version *