PHPackages                             rkioski/checkout-finland-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. rkioski/checkout-finland-api-client

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

rkioski/checkout-finland-api-client
===================================

API client for the payment gateway of Checkout Finland Oy.

815.3k8PHP

Since Oct 11Pushed 8y ago4 watchersCompare

[ Source](https://github.com/rkioski/CheckoutAPIClient)[ Packagist](https://packagist.org/packages/rkioski/checkout-finland-api-client)[ RSS](/packages/rkioski-checkout-finland-api-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CheckoutAPIClient
=================

[](#checkoutapiclient)

[![Build Status](https://camo.githubusercontent.com/b3402039f451dd6cbc3b1d0f7b475f4544e7e77950e602465505418a45782bee/68747470733a2f2f7472617669732d63692e6f72672f726b696f736b692f436865636b6f7574415049436c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rkioski/CheckoutAPIClient) [![Latest Stable Version](https://camo.githubusercontent.com/d7c613a691df0d95c49eec35fd690cd1ccd37dda310ea53d34fc299dec3d134d/68747470733a2f2f706f7365722e707567782e6f72672f726b696f736b692f636865636b6f75742d66696e6c616e642d6170692d636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/rkioski/checkout-finland-api-client) [![Latest Unstable Version](https://camo.githubusercontent.com/a9548ac79a6a410eae6ce610387deb1ec168e55e69649e9f8c5d4ef276e8aef7/68747470733a2f2f706f7365722e707567782e6f72672f726b696f736b692f636865636b6f75742d66696e6c616e642d6170692d636c69656e742f762f756e737461626c652e737667)](https://packagist.org/packages/rkioski/checkout-finland-api-client) [![License](https://camo.githubusercontent.com/d37992bc5e8a992c6989c456c2c6dbaf7ff26a7ad8b4403c4d4c966b386c32c7/68747470733a2f2f706f7365722e707567782e6f72672f726b696f736b692f636865636b6f75742d66696e6c616e642d6170692d636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/rkioski/checkout-finland-api-client)

API client for the finnish payment gateway Checkout Finland.

Requirements
------------

[](#requirements)

The following versions of PHP are supported:

- PHP 5.4
- PHP 5.5
- PHP 5.6
- HHVM

Requires:

- cURL or allow\_url\_fopen = On in php.ini

Client will try to send an HTTP POST by using PHP stream context with file\_get\_contents() or if that fails it will check if cURL extension is installed and try to use that instead.

Installation
============

[](#installation)

Via composer

```
composer require rkioski/checkout-finland-api-client dev-master

```

Usage
=====

[](#usage)

Take a look at the example folder for a full working example.

Creating payment

```
require 'vendor/autoload.php';

use CheckoutFinland\Payment;
use CheckoutFinland\Client;

$demo_merchant_id       = "375917";
$demo_merchant_secret   = "SAIPPUAKAUPPIAS";
$return_url             = "http://yourservice.com/your_return_handling_script.php";

$payment = new  Payment($demo_merchant_id, $demo_merchant_secret);

$payment->setUrls($return_url);

$stamp          = time(); // unique id for the payment
$amount         = '1000'; // amount is in cents
$reference      = '12344';
$message        = 'Nuts and bolts';
$delivery_date  = new \DateTime('2014-12-31');

$first_name     = 'John';
$family_name    = 'Doe';
$address        = 'Some Street 13 B 2';
$postcode       = '33100';
$post_office    = 'Some city';
$country        = 'FIN';
$language       = 'EN';

$payment->setOrderData($stamp, $amount, $reference, $message, $delivery_date);
$payment->setCustomerData($first_name, $family_name, $address, $postcode, $post_office, $country, $language);

$client = new Client();

$response = $client->sendPayment($payment);

$response_xml = @simplexml_load_string($response);
// redirect to payment page
header('Location: '.$response_xml->paymentURL);

// or show the payment buttons on your webpage, you will find all the data you need in the response xml
```

Handling return

```
require 'vendor/autoload.php';

use CheckoutFinland\Response;

$demo_merchant_secret   = "SAIPPUAKAUPPIAS";

$response = new Response($demo_merchant_secret);

$response->setRequestParams($_GET);

if($response->validate())
{
    // now check the status parameter if the payment was paid and do whatever you do in your shop when you get money
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/665530?v=4)[Matti S](/maintainers/rkioski)[@rkioski](https://github.com/rkioski)

---

Top Contributors

[![rkioski](https://avatars.githubusercontent.com/u/665530?v=4)](https://github.com/rkioski "rkioski (7 commits)")

### Embed Badge

![Health badge](/badges/rkioski-checkout-finland-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/rkioski-checkout-finland-api-client/health.svg)](https://phpackages.com/packages/rkioski-checkout-finland-api-client)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
