op-merchant-services / op-payment-service-php-sdk
PHP SDK for using Checkout Finland payment service
Installs: 19 718
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 8
Forks: 8
Open Issues: 0
Requires
- php: >=7.3
- ext-json: *
- psr/http-message: ~1.0
- ralouphie/getallheaders: ^2.0.5 || ^3.0.0
- symfony/polyfill-intl-idn: ^1.17.0
Requires (Dev)
README
⚠️ DEPRECATED
This SDK has been deprecated.
All of its functionality now exists as the rebranded paytrail/paytrail-php-sdk
.
PHP SDK for using Checkout Finland payment service
Requirements
PHP
- PHP version >= 7.3
Composer packages
- PHPUnit - A programmer-oriented testing framework for running unit tests in PHP.
Library packages
- Guzzle v6.5.5 - PHP HTTP client for performing HTTP request.
Installation
Install with Composer:
composer require checkout-finland/checkout-finland-php-sdk
The package uses PSR-4 autoloader. Activate autoloading by requiring the Composer autoloader:
require 'vendor/autoload.php';
Note the path to the vendor directory is relative to your project.
Folder contents & descriptions
Folder/File | Content/Description |
---|---|
src/Exception | Exception classes and functions |
src/Interfaces | Interface classes and functions for all the related classes to implement |
src/Model | Model classes and functions |
src/Request | Request classes and functions |
src/Response | Response classes and functions |
src/Util | Utility/trait classes and functions |
src/Client.php | Client class and functions |
lib | Library packages eg. Guzzle |
tests/unit | PHP unit tests |
examples | Examples |
Basic functionalities
Payments and refunds
Creating payment request
Documentation for creating payment requests can be found in Checkout PSP API Checkout PSP API reference.
Creating payment status request
Documentation for creating payment status requests can be found in Checkout PSP API reference
Creating refund request
Documentation for creating refund requests can be found in Checkout PSP API reference
Tokenized credit cards and payments
Creating Add card form request
Documentation for adding tokenized credit card form request can be found in Checkout PSP API reference
Creating Get token request
Documentation for Get token request and response can be found in Checkout PSP API reference
Creating CIT or MIT payment requests
Documentation for Customer Initiated Transactions (CIT) and Merchant Initiated Transactions (MIT) payment processes using tokenized credit cards can be found in Checkout PSP API reference