Download the PHP package postfinancecheckout/sdk without Composer
On this page you can find all versions of the php package postfinancecheckout/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download postfinancecheckout/sdk
More information about postfinancecheckout/sdk
Files in postfinancecheckout/sdk
Package sdk
Short Description PostFinance Checkout SDK for PHP
License Apache-2.0
Homepage http://github.com/pfpayments/php-sdk
Informations about the package sdk
PostFinance Checkout PHP Library
The PostFinance Checkout PHP library wraps around the PostFinance Checkout API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.
Documentation
PostFinance Checkout Web Service API
Requirements
- PHP 5.6.0 and above
Installation
You can use Composer or install manually
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 library:
Manual Installation
Alternatively you can download the package in its entirety. The Releases page lists all stable versions.
Uncompress the zip file you download, and include the autoloader in your project:
Usage
The library needs to be configured with your account's space id, user id, and secret key which are available in your PostFinance Checkout
account dashboard. Set space_id
, user_id
, and api_secret
to their values.
Configuring a Service
To get started with sending transactions, please review the example below:
HTTP Client
You can either use php curl
or php socket
extentions. It is recommend you install the necessary extentions and enable them on your system.
You have to ways two specify which HTTP client you prefer.
You can also specify the HTTP client via the PFC_HTTP_CLIENT
environment variable. The possible string values are curl
or socket
.
Integrating Webhook Payload Signing Mechanism into webhook callback handler
The HTTP request which is sent for a state change of an entity now includes an additional field state
, which provides information about the update of the monitored entity's state. This enhancement is a result of the implementation of our webhook encryption mechanism.
Payload field state
provides direct information about the state update of the entity, making additional API calls to retrieve the entity state redundant.
⚠️ Warning: Generic Pseudocode
The provided pseudocode is intentionally generic and serves to illustrate the process of enhancing your API to leverage webhook payload signing. It is not a complete implementation.
Please ensure that you adapt and extend this code to meet the specific needs of your application, including appropriate security measures and error handling. For a detailed webhook payload signing mechanism understanding we highly recommend referring to our comprehensive Webhook Payload Signing Documentation.
License
Please see the license file for more information.
All versions of sdk with dependencies
ext-json Version *
ext-mbstring Version *