Maksekeskus PHP SDK
Switch branches/tags
Nothing to show
Clone or download
ylomk getTransactionStatement, getVersion added
getTransactionStatement and  getVersion added, version set to 1.4.0
Latest commit 8dd6744 Oct 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Update package builder and README Nov 17, 2016
lib getTransactionStatement, getVersion added Oct 10, 2018
.gitignore Library import Aug 15, 2014
LICENSE Initial commit Jul 31, 2014
README.md added link to developer.maksekeskus.ee Aug 18, 2017
composer.json Set project type and stability minimum attributes Nov 17, 2016

README.md

maksekeskus-php

#Installation

Composer

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/maksekeskus/maksekeskus-php"
        }
    ],
    "require": {
        "maksekeskus/maksekeskus-php": "v1.1"
    }
}

Prebuilt packages

Download the packaged library form the repository [releases] (https://github.com/maksekeskus/maksekeskus-php/releases/).

Unpack it into your project folder (i.e. /htdocs/myshop/ ) and include the libarary file ( i.e. /htdocs/myshop/Maksekeskus-1.1/Maksekeskus.php )

Get your API keys from merchant.maksekeskus.ee or merchant-test.maksekeskus.ee

Example

<?php

require __DIR__ . '/maksekeskus-1.1/vendor/autoload.php'; //Comment this line out if you are using Composer to build your project

use Maksekeskus\Maksekeskus;

// get your API keys from merchant-test.maksekeskus.ee or merchant.maksekeskus.ee
$shopId = '12ee0036-3719-...-9a8b-51f5770190ca';
$KeyPublishable = '5wCSE2B2OAV6...cpe2N1kZQzCXNTe';
$KeySecret = 'JvH2IZ6W6fvKB7W7...ea3BLWgqcfbhQKEN1w2UDrua3sWlojPGfhp';

// use TRUE if working against the Test environment
// see https://makecommerce.net/en/for-developers/test-environment/
$MK = new Maksekeskus($shopId,$KeyPublishable,$KeySecret,TRUE);

$context["currency"]="eur";
$context["country"]="ee";

$data = $MK->getPaymentMethods($context);

print "<pre>";
print_r($data);
print "</pre>";

?>

See more examples on https://developer.maksekeskus.ee/