Skip to content

Commit

Permalink
Fixed hardcoded temp dir path, updated production API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-rojek committed Sep 25, 2013
1 parent 2303c3d commit ed6cf5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ to store temporary files. This path should be outside your www folder.
It could be `/tmp/` or `/var/tmp/` or any other location that PHP can write to.

`$api->Config->BaseUrl` is set to sandbox environment by default. To enable production
environment, set it to `https://mangopay-api.leetchi.com`.
environment, set it to `https://api.mangopay.com`.

require_once '{your-installation-dir}/MangoPaySDK/mangoPayApi.inc';
$api = new MangoPay\MangoPayApi();
Expand Down
7 changes: 4 additions & 3 deletions demos/api/config.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php

/**
* Setting for client: client Id, client password, base URL
* Setting for client: client Id, client password
*/
define('MangoPayDemo_ClientId', 'example');
define('MangoPayDemo_ClientPassword', 'uyWsmnwMQyTnqKgi8Y35A3eVB7bGhqrebYqA1tL6x2vYNpGPiY');

/**
* Path to folder with temporary files (with permissions to write)
* Path to folder to store temporary files (with permissions to write)
*/
define('MangoPayDemo_TemporaryFolder', 'D:/tmp/');
define('MangoPayDemo_TemporaryFolder', __dir__);
4 changes: 2 additions & 2 deletions demos/paymentDirect/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

/**
* Setting for client: client Id, client password, base URL
* Setting for client: client Id, client password
*/
define('MangoPayDemo_ClientId', 'example');
define('MangoPayDemo_ClientPassword', 'uyWsmnwMQyTnqKgi8Y35A3eVB7bGhqrebYqA1tL6x2vYNpGPiY');

/**
* Path to folder with temporary files (with permissions to write)
* Path to folder to store temporary files (with permissions to write)
*/
define('MangoPayDemo_TemporaryFolder', __dir__);

0 comments on commit ed6cf5d

Please sign in to comment.