Skip to content

Commit

Permalink
Updated API and gateway URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Priit1337 committed Feb 3, 2021
1 parent 0743ad4 commit ea1445d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maksekeskus-php
}
],
"require": {
"maksekeskus/maksekeskus-php": "v1.4.1"
"maksekeskus/maksekeskus-php": "v1.4.2"
}
}
```
Expand All @@ -25,7 +25,7 @@ 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.4.1/Maksekeskus.php )
and include the libarary file ( i.e. /htdocs/myshop/Maksekeskus-1.4.2/Maksekeskus.php )

Get your API keys from [merchant.maksekeskus.ee](https://merchant.maksekeskus.ee) or [merchant.test.maksekeskus.ee](https://merchant.test.maksekeskus.ee)

Expand All @@ -34,7 +34,7 @@ Get your API keys from [merchant.maksekeskus.ee](https://merchant.maksekeskus.ee
``` php
<?php

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

use Maksekeskus\Maksekeskus;

Expand Down
10 changes: 5 additions & 5 deletions lib/Maksekeskus.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Maksekeskus
/**
* @var string library Version
*/
private $version = "1.4.1";
private $version = "1.4.2";

/**
* Response object of the last API request
Expand Down Expand Up @@ -94,11 +94,11 @@ public function __construct ($shopId, $publishableKey = NULL, $secretKey = NULL,
$this->setSecretKey($secretKey);

if ($testEnv) {
$this->setApiUrl('https://api-test.maksekeskus.ee');
$this->setApiUrl('https://api.test.maksekeskus.ee');
$this->envUrls = array(
'apiUrl' => 'https://api-test.maksekeskus.ee',
'checkoutjsUrl' => 'https://payment-test.maksekeskus.ee/checkout/dist/',
'gatewayUrl' => 'https://payment-test.maksekeskus.ee/pay/1/signed.html',
'apiUrl' => 'https://api.test.maksekeskus.ee',
'checkoutjsUrl' => 'https://payment.test.maksekeskus.ee/checkout/dist/',
'gatewayUrl' => 'https://payment.test.maksekeskus.ee/pay/1/signed.html',
'merchantUrl' => 'https://merchant.test.maksekeskus.ee/',
'staticsUrl' => 'https://static-test.maksekeskus.ee/'
);
Expand Down

0 comments on commit ea1445d

Please sign in to comment.