Git Product home page Git Product logo

maksekeskus-php's Introduction

maksekeskus-php

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.0/Maksekeskus.php )

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

And off you go:

<?php
 include_once 'maksekeskus-1.0/Maksekeskus.php';

// 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://maksekeskus.ee/api-explorer/intro.php

and API documentation: http://docs.maksekeskus.apiary.io

maksekeskus-php's People

Contributors

priitpiile avatar

Watchers

Klemens Arro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.