Download the PHP package postfinancecheckout/plugin-core without Composer

On this page you can find all versions of the php package postfinancecheckout/plugin-core. 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 plugin-core

PostFinanceCheckout Plugin Core Library

The canonical, framework-agnostic business logic engine for PostFinanceCheckout payment integrations.

This library abstracts the complexity of the PostFinanceCheckout SDK and provides a standardized, robust implementation of payment flows. It is designed to be used as a core dependency by platform-specific plugins (Magento, WooCommerce, Shopware, etc.), decoupling business logic from platform infrastructure.


Core Philosophy

The goal of this project is to centralize all payment business logic into a single, reusable library, decoupling it from the specific constraints of platforms like Magento or WooCommerce.

Instead of duplicating complex logic across different shop systems, plugin-core implements the payment workflows once, using pure PHP. This shifts the role of the shop-specific plugin:

Key Architectural Benefits


Key Features

The library is divided into major functional components, each designed for robustness and ease of integration.

1. Checkout Engine

The core of the payment flow. Handles transaction creation and management with a sophisticated "upsert" strategy, ensuring seamless navigation without duplicate charges.

2. Webhook Processor

The engine for handling asynchronous events from the PostFinanceCheckout Portal. It's built for scale and high concurrency.

3. Webhook Management

Tools for programmatically managing webhooks in the PostFinanceCheckout Portal, including URL creation and Listener setup.

4. Transaction Completion (Capture & Void)

Manage the final stages of the transaction lifecycle. Finalize payments (Capture) or cancel them (Void) with dedicated service handlers.

5. Recurring Payments

Enables Merchant Initiated Transactions (MIT) for seamless subscription renewals and unscheduled subsequent charges using saved tokens.

6. Refund Management

Support for full and partial refunds. Includes precise line-item logic and validation to prevent over-refunding.

7. Document Management

Retrieve official PDF documents (Invoices, Packing Slips, Credit Notes) directly from the PostFinanceCheckout Portal for the merchants.

8. Payment Method Service

A centralized service to fetch available payment method configurations from the PostFinanceCheckout Portal, ensuring the shop systems have an up-to-date view of available payment methods.

9. Manual Task Tracking

Check how many manual tasks (e.g. a manual risk review) are outstanding for a space, so the shop can surface a reminder to the merchant before a transaction can proceed.

10. Token Management

Saved payment credentials for recurring/Merchant Initiated Transactions, with explicit control over how and when tokenization is applied at checkout.

11. Charge

Charge a transaction through its charge flow, and read the resulting charge attempts along with the labels the payment processor reported, such as the card brand or the acquirer reference.

12. Global Data

Look up the currencies, languages, payment connectors, and label descriptors the PostFinanceCheckout Portal supports — global data, not tied to any space — through the single GlobalDataService facade.

13. Plugin Identification

Name your shop system and plugin version on every API call, so the PostFinanceCheckout Portal can trace a request back to the installation that made it. Optional, and configured once on the SdkProvider.


Documentation & Examples

For detailed implementation guides and runnable examples for every module, see the documentation index.


Installation


Unit Tests

You can run the test suite to verify the library's behavior.

License

Apache License. See LICENSE.txt.


All versions of plugin-core with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
postfinancecheckout/sdk Version ^5.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 postfinancecheckout/plugin-core contains the following files

Loading the files please wait ...