op-merchant-services/op-payment-service-php-sdk

This package is abandoned and no longer maintained. The author suggests using the checkout-finland/checkout-finland-php-sdk package instead.

PHP SDK for using Checkout Finland payment service

1.5.0 2021-09-30 08:51 UTC

This package is auto-updated.

Last update: 2022-10-10 06:39:35 UTC


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