Version Notes
This extension adds CashCloud payment methods
Download this release
Release Info
| Developer | cashcloud |
| Extension | cashcloud_payments |
| Version | 0.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 0.0.1 to 0.0.2
- lib/CashCloudApi/README.md +0 -0
- lib/CashCloudApi/composer.json +0 -0
- lib/CashCloudApi/phpunit.xml +0 -0
- lib/CashCloudApi/samples/GetRate.php +0 -0
- lib/CashCloudApi/samples/GetReasons.php +0 -0
- lib/CashCloudApi/samples/GetSettings.php +0 -0
- lib/CashCloudApi/samples/RequestMoney.php +0 -0
- lib/CashCloudApi/samples/SaveSettings.php +0 -0
- lib/CashCloudApi/samples/credentials.php +0 -0
- lib/CashCloudApi/src/CashCloud/Api/Exception/AuthException.php +0 -0
- lib/CashCloudApi/src/CashCloud/Api/Exception/CashCloudException.php +0 -0
- lib/CashCloudApi/src/CashCloud/Api/Exception/ValidateException.php +8 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/GetRates.php +11 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/GetReasons.php +9 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/GetSettings.php +6 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/GetTransactions.php +19 -5
- lib/CashCloudApi/src/CashCloud/Api/Method/Method.php +8 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/Refund.php +18 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/RequestMoney.php +30 -0
- lib/CashCloudApi/src/CashCloud/Api/Method/SaveSettings.php +14 -0
- lib/CashCloudApi/src/CashCloud/Api/Rest/Auth.php +16 -1
- lib/CashCloudApi/src/CashCloud/Api/Rest/Client.php +16 -0
- lib/CashCloudApi/src/CashCloud/Api/Rest/CurlRequest.php +34 -0
- lib/CashCloudApi/src/CashCloud/Api/Rest/Request.php +25 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Exception/ValidateExceptionTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetRatesTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetReasonsTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetSettingsTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Method/RequestMoneyTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Method/SaveSettingsTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/AuthTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/ClientTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/CurlRequestTest.php +0 -0
- lib/CashCloudApi/tests/CashCloud/Test/TestCase.php +0 -0
- lib/CashCloudApi/tests/bootstrap.php +0 -0
- lib/CashCloudApi/vendor/autoload.php +1 -1
- lib/CashCloudApi/vendor/composer/ClassLoader.php +19 -5
- lib/CashCloudApi/vendor/composer/autoload_real.php +4 -4
- package.xml +107 -107
lib/CashCloudApi/README.md
CHANGED
|
File without changes
|
lib/CashCloudApi/composer.json
CHANGED
|
File without changes
|
lib/CashCloudApi/phpunit.xml
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/GetRate.php
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/GetReasons.php
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/GetSettings.php
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/RequestMoney.php
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/SaveSettings.php
CHANGED
|
File without changes
|
lib/CashCloudApi/samples/credentials.php
CHANGED
|
File without changes
|
lib/CashCloudApi/src/CashCloud/Api/Exception/AuthException.php
CHANGED
|
File without changes
|
lib/CashCloudApi/src/CashCloud/Api/Exception/CashCloudException.php
CHANGED
|
File without changes
|
lib/CashCloudApi/src/CashCloud/Api/Exception/ValidateException.php
CHANGED
|
@@ -12,6 +12,8 @@ class ValidateException extends CashCloudException
|
|
| 12 |
protected $errors = array();
|
| 13 |
|
| 14 |
/**
|
|
|
|
|
|
|
| 15 |
* @param mixed $errors
|
| 16 |
*/
|
| 17 |
public function __construct($errors)
|
|
@@ -21,6 +23,8 @@ class ValidateException extends CashCloudException
|
|
| 21 |
}
|
| 22 |
|
| 23 |
/**
|
|
|
|
|
|
|
| 24 |
* @return array|string
|
| 25 |
*/
|
| 26 |
public function getErrors()
|
|
@@ -29,6 +33,8 @@ class ValidateException extends CashCloudException
|
|
| 29 |
}
|
| 30 |
|
| 31 |
/**
|
|
|
|
|
|
|
| 32 |
* @return bool
|
| 33 |
*/
|
| 34 |
public function getFirstError()
|
|
@@ -40,6 +46,8 @@ class ValidateException extends CashCloudException
|
|
| 40 |
}
|
| 41 |
|
| 42 |
/**
|
|
|
|
|
|
|
| 43 |
* @param $errors
|
| 44 |
* @return mixed
|
| 45 |
*/
|
| 12 |
protected $errors = array();
|
| 13 |
|
| 14 |
/**
|
| 15 |
+
* Parses errors on construction
|
| 16 |
+
*
|
| 17 |
* @param mixed $errors
|
| 18 |
*/
|
| 19 |
public function __construct($errors)
|
| 23 |
}
|
| 24 |
|
| 25 |
/**
|
| 26 |
+
* Returns array of errors
|
| 27 |
+
*
|
| 28 |
* @return array|string
|
| 29 |
*/
|
| 30 |
public function getErrors()
|
| 33 |
}
|
| 34 |
|
| 35 |
/**
|
| 36 |
+
* Return first error
|
| 37 |
+
*
|
| 38 |
* @return bool
|
| 39 |
*/
|
| 40 |
public function getFirstError()
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
| 49 |
+
* Parse cashcloud API errors
|
| 50 |
+
*
|
| 51 |
* @param $errors
|
| 52 |
* @return mixed
|
| 53 |
*/
|
lib/CashCloudApi/src/CashCloud/Api/Method/GetRates.php
CHANGED
|
@@ -9,10 +9,14 @@ use CashCloud\Api\Rest\Request;
|
|
| 9 |
*/
|
| 10 |
class GetRates extends Method
|
| 11 |
{
|
|
|
|
|
|
|
|
|
|
| 12 |
protected $amount = null;
|
| 13 |
|
| 14 |
/**
|
| 15 |
* Return method URL
|
|
|
|
| 16 |
* @param \CashCloud\Api\Rest\Client $api
|
| 17 |
* @return string
|
| 18 |
*/
|
|
@@ -23,6 +27,7 @@ class GetRates extends Method
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Return method data
|
|
|
|
| 26 |
* @return array
|
| 27 |
*/
|
| 28 |
public function getData()
|
|
@@ -33,6 +38,8 @@ class GetRates extends Method
|
|
| 33 |
}
|
| 34 |
|
| 35 |
/**
|
|
|
|
|
|
|
| 36 |
* @param Request $request
|
| 37 |
* @return array
|
| 38 |
*/
|
|
@@ -46,6 +53,8 @@ class GetRates extends Method
|
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
|
|
|
|
|
|
| 49 |
* @return float
|
| 50 |
*/
|
| 51 |
public function getAmount()
|
|
@@ -54,6 +63,8 @@ class GetRates extends Method
|
|
| 54 |
}
|
| 55 |
|
| 56 |
/**
|
|
|
|
|
|
|
| 57 |
* @param float $amount
|
| 58 |
*/
|
| 59 |
public function setAmount($amount)
|
| 9 |
*/
|
| 10 |
class GetRates extends Method
|
| 11 |
{
|
| 12 |
+
/**
|
| 13 |
+
* @var null
|
| 14 |
+
*/
|
| 15 |
protected $amount = null;
|
| 16 |
|
| 17 |
/**
|
| 18 |
* Return method URL
|
| 19 |
+
*
|
| 20 |
* @param \CashCloud\Api\Rest\Client $api
|
| 21 |
* @return string
|
| 22 |
*/
|
| 27 |
|
| 28 |
/**
|
| 29 |
* Return method data
|
| 30 |
+
*
|
| 31 |
* @return array
|
| 32 |
*/
|
| 33 |
public function getData()
|
| 38 |
}
|
| 39 |
|
| 40 |
/**
|
| 41 |
+
* Formats response
|
| 42 |
+
*
|
| 43 |
* @param Request $request
|
| 44 |
* @return array
|
| 45 |
*/
|
| 53 |
}
|
| 54 |
|
| 55 |
/**
|
| 56 |
+
* Returns amount in euro cents
|
| 57 |
+
*
|
| 58 |
* @return float
|
| 59 |
*/
|
| 60 |
public function getAmount()
|
| 63 |
}
|
| 64 |
|
| 65 |
/**
|
| 66 |
+
* Sets amount in euro cents
|
| 67 |
+
*
|
| 68 |
* @param float $amount
|
| 69 |
*/
|
| 70 |
public function setAmount($amount)
|
lib/CashCloudApi/src/CashCloud/Api/Method/GetReasons.php
CHANGED
|
@@ -13,6 +13,7 @@ class GetReasons extends Method
|
|
| 13 |
|
| 14 |
/**
|
| 15 |
* Return method URL
|
|
|
|
| 16 |
* @param \CashCloud\Api\Rest\Client $api
|
| 17 |
* @return string
|
| 18 |
*/
|
|
@@ -23,6 +24,7 @@ class GetReasons extends Method
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Return method data
|
|
|
|
| 26 |
* @return array
|
| 27 |
*/
|
| 28 |
public function getData()
|
|
@@ -30,6 +32,11 @@ class GetReasons extends Method
|
|
| 30 |
return array();
|
| 31 |
}
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
public function getMethod()
|
| 34 |
{
|
| 35 |
return Request::GET;
|
|
@@ -37,6 +44,8 @@ class GetReasons extends Method
|
|
| 37 |
|
| 38 |
|
| 39 |
/**
|
|
|
|
|
|
|
| 40 |
* @param Request $request
|
| 41 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 42 |
* @return array
|
| 13 |
|
| 14 |
/**
|
| 15 |
* Return method URL
|
| 16 |
+
*
|
| 17 |
* @param \CashCloud\Api\Rest\Client $api
|
| 18 |
* @return string
|
| 19 |
*/
|
| 24 |
|
| 25 |
/**
|
| 26 |
* Return method data
|
| 27 |
+
*
|
| 28 |
* @return array
|
| 29 |
*/
|
| 30 |
public function getData()
|
| 32 |
return array();
|
| 33 |
}
|
| 34 |
|
| 35 |
+
/**
|
| 36 |
+
* Return request method
|
| 37 |
+
*
|
| 38 |
+
* @return string
|
| 39 |
+
*/
|
| 40 |
public function getMethod()
|
| 41 |
{
|
| 42 |
return Request::GET;
|
| 44 |
|
| 45 |
|
| 46 |
/**
|
| 47 |
+
* Formats response
|
| 48 |
+
*
|
| 49 |
* @param Request $request
|
| 50 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 51 |
* @return array
|
lib/CashCloudApi/src/CashCloud/Api/Method/GetSettings.php
CHANGED
|
@@ -20,6 +20,7 @@ class GetSettings extends Method
|
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Return method URL
|
|
|
|
| 23 |
* @param \CashCloud\Api\Rest\Client $api
|
| 24 |
* @return string
|
| 25 |
*/
|
|
@@ -29,6 +30,8 @@ class GetSettings extends Method
|
|
| 29 |
}
|
| 30 |
|
| 31 |
/**
|
|
|
|
|
|
|
| 32 |
* @return string
|
| 33 |
*/
|
| 34 |
public function getMethod()
|
|
@@ -38,6 +41,7 @@ class GetSettings extends Method
|
|
| 38 |
|
| 39 |
/**
|
| 40 |
* Return method data
|
|
|
|
| 41 |
* @return array
|
| 42 |
*/
|
| 43 |
public function getData()
|
|
@@ -46,6 +50,8 @@ class GetSettings extends Method
|
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
|
|
|
|
|
|
| 49 |
* @param Request $request
|
| 50 |
* @return array
|
| 51 |
*/
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Return method URL
|
| 23 |
+
*
|
| 24 |
* @param \CashCloud\Api\Rest\Client $api
|
| 25 |
* @return string
|
| 26 |
*/
|
| 30 |
}
|
| 31 |
|
| 32 |
/**
|
| 33 |
+
* Return request method
|
| 34 |
+
*
|
| 35 |
* @return string
|
| 36 |
*/
|
| 37 |
public function getMethod()
|
| 41 |
|
| 42 |
/**
|
| 43 |
* Return method data
|
| 44 |
+
*
|
| 45 |
* @return array
|
| 46 |
*/
|
| 47 |
public function getData()
|
| 50 |
}
|
| 51 |
|
| 52 |
/**
|
| 53 |
+
* Formats response
|
| 54 |
+
*
|
| 55 |
* @param Request $request
|
| 56 |
* @return array
|
| 57 |
*/
|
lib/CashCloudApi/src/CashCloud/Api/Method/GetTransactions.php
CHANGED
|
@@ -3,8 +3,15 @@
|
|
| 3 |
use CashCloud\Api\Rest\Client;
|
| 4 |
use CashCloud\Api\Rest\Request;
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
class GetTransactions extends Method
|
| 7 |
{
|
|
|
|
|
|
|
|
|
|
| 8 |
protected $hash = null;
|
| 9 |
|
| 10 |
/**
|
|
@@ -18,22 +25,28 @@ class GetTransactions extends Method
|
|
| 18 |
}
|
| 19 |
|
| 20 |
/**
|
|
|
|
|
|
|
| 21 |
* @return string
|
| 22 |
*/
|
| 23 |
-
public function
|
| 24 |
{
|
| 25 |
-
return
|
| 26 |
}
|
| 27 |
|
| 28 |
/**
|
|
|
|
|
|
|
| 29 |
* @return string
|
| 30 |
*/
|
| 31 |
-
public function
|
| 32 |
{
|
| 33 |
-
return
|
| 34 |
}
|
| 35 |
|
| 36 |
/**
|
|
|
|
|
|
|
| 37 |
* @param string $hash
|
| 38 |
*/
|
| 39 |
public function setHash($hash)
|
|
@@ -54,8 +67,9 @@ class GetTransactions extends Method
|
|
| 54 |
}
|
| 55 |
|
| 56 |
/**
|
| 57 |
-
*
|
| 58 |
*
|
|
|
|
| 59 |
* @return array
|
| 60 |
*/
|
| 61 |
public function formatResponse(Request $request)
|
| 3 |
use CashCloud\Api\Rest\Client;
|
| 4 |
use CashCloud\Api\Rest\Request;
|
| 5 |
|
| 6 |
+
/**
|
| 7 |
+
* Class GetTransactions
|
| 8 |
+
* @package CashCloud\Api\Method
|
| 9 |
+
*/
|
| 10 |
class GetTransactions extends Method
|
| 11 |
{
|
| 12 |
+
/**
|
| 13 |
+
* @var null
|
| 14 |
+
*/
|
| 15 |
protected $hash = null;
|
| 16 |
|
| 17 |
/**
|
| 25 |
}
|
| 26 |
|
| 27 |
/**
|
| 28 |
+
* Returns cashcloud hash
|
| 29 |
+
*
|
| 30 |
* @return string
|
| 31 |
*/
|
| 32 |
+
public function getHash()
|
| 33 |
{
|
| 34 |
+
return $this->hash;
|
| 35 |
}
|
| 36 |
|
| 37 |
/**
|
| 38 |
+
* Return request method
|
| 39 |
+
*
|
| 40 |
* @return string
|
| 41 |
*/
|
| 42 |
+
public function getMethod()
|
| 43 |
{
|
| 44 |
+
return Request::GET;
|
| 45 |
}
|
| 46 |
|
| 47 |
/**
|
| 48 |
+
* Sets cashcloud hash
|
| 49 |
+
*
|
| 50 |
* @param string $hash
|
| 51 |
*/
|
| 52 |
public function setHash($hash)
|
| 67 |
}
|
| 68 |
|
| 69 |
/**
|
| 70 |
+
* Formats response
|
| 71 |
*
|
| 72 |
+
* @param Request $request
|
| 73 |
* @return array
|
| 74 |
*/
|
| 75 |
public function formatResponse(Request $request)
|
lib/CashCloudApi/src/CashCloud/Api/Method/Method.php
CHANGED
|
@@ -32,6 +32,8 @@ abstract class Method
|
|
| 32 |
abstract public function getData();
|
| 33 |
|
| 34 |
/**
|
|
|
|
|
|
|
| 35 |
* @param Request $request
|
| 36 |
*/
|
| 37 |
function __construct(Request $request = null)
|
|
@@ -44,6 +46,8 @@ abstract class Method
|
|
| 44 |
}
|
| 45 |
|
| 46 |
/**
|
|
|
|
|
|
|
| 47 |
* @return string
|
| 48 |
*/
|
| 49 |
public function getMethod()
|
|
@@ -52,12 +56,16 @@ abstract class Method
|
|
| 52 |
}
|
| 53 |
|
| 54 |
/**
|
|
|
|
|
|
|
| 55 |
* @param Request $request
|
| 56 |
* @return array
|
| 57 |
*/
|
| 58 |
abstract public function formatResponse(Request $request);
|
| 59 |
|
| 60 |
/**
|
|
|
|
|
|
|
| 61 |
* @param Client $api
|
| 62 |
* @return mixed
|
| 63 |
* @throws \CashCloud\Api\Exception\ValidateException
|
| 32 |
abstract public function getData();
|
| 33 |
|
| 34 |
/**
|
| 35 |
+
* Construct method, depends on Request
|
| 36 |
+
*
|
| 37 |
* @param Request $request
|
| 38 |
*/
|
| 39 |
function __construct(Request $request = null)
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
| 49 |
+
* Returns request method
|
| 50 |
+
*
|
| 51 |
* @return string
|
| 52 |
*/
|
| 53 |
public function getMethod()
|
| 56 |
}
|
| 57 |
|
| 58 |
/**
|
| 59 |
+
* Formats response
|
| 60 |
+
*
|
| 61 |
* @param Request $request
|
| 62 |
* @return array
|
| 63 |
*/
|
| 64 |
abstract public function formatResponse(Request $request);
|
| 65 |
|
| 66 |
/**
|
| 67 |
+
* Performs the request
|
| 68 |
+
*
|
| 69 |
* @param Client $api
|
| 70 |
* @return mixed
|
| 71 |
* @throws \CashCloud\Api\Exception\ValidateException
|
lib/CashCloudApi/src/CashCloud/Api/Method/Refund.php
CHANGED
|
@@ -24,6 +24,7 @@ class Refund extends Method
|
|
| 24 |
|
| 25 |
/**
|
| 26 |
* Return method URL
|
|
|
|
| 27 |
* @param \CashCloud\Api\Rest\Client $api
|
| 28 |
* @return string
|
| 29 |
*/
|
|
@@ -33,6 +34,8 @@ class Refund extends Method
|
|
| 33 |
}
|
| 34 |
|
| 35 |
/**
|
|
|
|
|
|
|
| 36 |
* @return string
|
| 37 |
*/
|
| 38 |
public function getMethod()
|
|
@@ -43,6 +46,7 @@ class Refund extends Method
|
|
| 43 |
|
| 44 |
/**
|
| 45 |
* Return method data
|
|
|
|
| 46 |
* @return array
|
| 47 |
*/
|
| 48 |
public function getData()
|
|
@@ -55,6 +59,8 @@ class Refund extends Method
|
|
| 55 |
}
|
| 56 |
|
| 57 |
/**
|
|
|
|
|
|
|
| 58 |
* @param Request $request
|
| 59 |
* @return array
|
| 60 |
*/
|
|
@@ -64,6 +70,8 @@ class Refund extends Method
|
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
|
|
|
|
|
|
| 67 |
* @return string
|
| 68 |
*/
|
| 69 |
public function getHash()
|
|
@@ -72,6 +80,8 @@ class Refund extends Method
|
|
| 72 |
}
|
| 73 |
|
| 74 |
/**
|
|
|
|
|
|
|
| 75 |
* @param string $hash
|
| 76 |
*/
|
| 77 |
public function setHash($hash)
|
|
@@ -80,6 +90,8 @@ class Refund extends Method
|
|
| 80 |
}
|
| 81 |
|
| 82 |
/**
|
|
|
|
|
|
|
| 83 |
* @return int
|
| 84 |
*/
|
| 85 |
public function getAmount()
|
|
@@ -88,6 +100,8 @@ class Refund extends Method
|
|
| 88 |
}
|
| 89 |
|
| 90 |
/**
|
|
|
|
|
|
|
| 91 |
* @param int $amount
|
| 92 |
*/
|
| 93 |
public function setAmount($amount)
|
|
@@ -96,6 +110,8 @@ class Refund extends Method
|
|
| 96 |
}
|
| 97 |
|
| 98 |
/**
|
|
|
|
|
|
|
| 99 |
* @return string
|
| 100 |
*/
|
| 101 |
public function getRemark()
|
|
@@ -104,6 +120,8 @@ class Refund extends Method
|
|
| 104 |
}
|
| 105 |
|
| 106 |
/**
|
|
|
|
|
|
|
| 107 |
* @param string $remark
|
| 108 |
*/
|
| 109 |
public function setRemark($remark)
|
| 24 |
|
| 25 |
/**
|
| 26 |
* Return method URL
|
| 27 |
+
*
|
| 28 |
* @param \CashCloud\Api\Rest\Client $api
|
| 29 |
* @return string
|
| 30 |
*/
|
| 34 |
}
|
| 35 |
|
| 36 |
/**
|
| 37 |
+
* Return request method
|
| 38 |
+
*
|
| 39 |
* @return string
|
| 40 |
*/
|
| 41 |
public function getMethod()
|
| 46 |
|
| 47 |
/**
|
| 48 |
* Return method data
|
| 49 |
+
*
|
| 50 |
* @return array
|
| 51 |
*/
|
| 52 |
public function getData()
|
| 59 |
}
|
| 60 |
|
| 61 |
/**
|
| 62 |
+
* Formats response
|
| 63 |
+
*
|
| 64 |
* @param Request $request
|
| 65 |
* @return array
|
| 66 |
*/
|
| 70 |
}
|
| 71 |
|
| 72 |
/**
|
| 73 |
+
* Returns cashcloud hash
|
| 74 |
+
*
|
| 75 |
* @return string
|
| 76 |
*/
|
| 77 |
public function getHash()
|
| 80 |
}
|
| 81 |
|
| 82 |
/**
|
| 83 |
+
* Sets cashcloud hash
|
| 84 |
+
*
|
| 85 |
* @param string $hash
|
| 86 |
*/
|
| 87 |
public function setHash($hash)
|
| 90 |
}
|
| 91 |
|
| 92 |
/**
|
| 93 |
+
* Returns amount in euro cents
|
| 94 |
+
*
|
| 95 |
* @return int
|
| 96 |
*/
|
| 97 |
public function getAmount()
|
| 100 |
}
|
| 101 |
|
| 102 |
/**
|
| 103 |
+
* Sets amount in euro cents
|
| 104 |
+
*
|
| 105 |
* @param int $amount
|
| 106 |
*/
|
| 107 |
public function setAmount($amount)
|
| 110 |
}
|
| 111 |
|
| 112 |
/**
|
| 113 |
+
* Returns order remark
|
| 114 |
+
*
|
| 115 |
* @return string
|
| 116 |
*/
|
| 117 |
public function getRemark()
|
| 120 |
}
|
| 121 |
|
| 122 |
/**
|
| 123 |
+
* Sets order remark
|
| 124 |
+
*
|
| 125 |
* @param string $remark
|
| 126 |
*/
|
| 127 |
public function setRemark($remark)
|
lib/CashCloudApi/src/CashCloud/Api/Method/RequestMoney.php
CHANGED
|
@@ -44,6 +44,8 @@ class RequestMoney extends Method
|
|
| 44 |
protected $externalDescription;
|
| 45 |
|
| 46 |
/**
|
|
|
|
|
|
|
| 47 |
* @return string
|
| 48 |
*/
|
| 49 |
public function getMethod()
|
|
@@ -52,6 +54,8 @@ class RequestMoney extends Method
|
|
| 52 |
}
|
| 53 |
|
| 54 |
/**
|
|
|
|
|
|
|
| 55 |
* @return mixed
|
| 56 |
*/
|
| 57 |
public function getEmail()
|
|
@@ -60,6 +64,8 @@ class RequestMoney extends Method
|
|
| 60 |
}
|
| 61 |
|
| 62 |
/**
|
|
|
|
|
|
|
| 63 |
* @param mixed $email
|
| 64 |
*/
|
| 65 |
public function setEmail($email)
|
|
@@ -68,6 +74,8 @@ class RequestMoney extends Method
|
|
| 68 |
}
|
| 69 |
|
| 70 |
/**
|
|
|
|
|
|
|
| 71 |
* @return mixed
|
| 72 |
*/
|
| 73 |
public function getAmount()
|
|
@@ -76,6 +84,8 @@ class RequestMoney extends Method
|
|
| 76 |
}
|
| 77 |
|
| 78 |
/**
|
|
|
|
|
|
|
| 79 |
* @param mixed $amount
|
| 80 |
*/
|
| 81 |
public function setAmount($amount)
|
|
@@ -84,6 +94,8 @@ class RequestMoney extends Method
|
|
| 84 |
}
|
| 85 |
|
| 86 |
/**
|
|
|
|
|
|
|
| 87 |
* @return mixed
|
| 88 |
*/
|
| 89 |
public function getCurrency()
|
|
@@ -92,6 +104,8 @@ class RequestMoney extends Method
|
|
| 92 |
}
|
| 93 |
|
| 94 |
/**
|
|
|
|
|
|
|
| 95 |
* @param mixed $currency
|
| 96 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 97 |
*/
|
|
@@ -104,6 +118,8 @@ class RequestMoney extends Method
|
|
| 104 |
}
|
| 105 |
|
| 106 |
/**
|
|
|
|
|
|
|
| 107 |
* @param string $id
|
| 108 |
* @param string $reference
|
| 109 |
* @param string $description
|
|
@@ -118,6 +134,7 @@ class RequestMoney extends Method
|
|
| 118 |
|
| 119 |
/**
|
| 120 |
* Return method URL
|
|
|
|
| 121 |
* @param \CashCloud\Api\Rest\Client $api
|
| 122 |
* @return string
|
| 123 |
*/
|
|
@@ -128,6 +145,7 @@ class RequestMoney extends Method
|
|
| 128 |
|
| 129 |
/**
|
| 130 |
* Return method data
|
|
|
|
| 131 |
* @return array
|
| 132 |
*/
|
| 133 |
public function getData()
|
|
@@ -145,6 +163,8 @@ class RequestMoney extends Method
|
|
| 145 |
}
|
| 146 |
|
| 147 |
/**
|
|
|
|
|
|
|
| 148 |
* @param Client $api
|
| 149 |
* @return mixed
|
| 150 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
|
@@ -169,6 +189,8 @@ class RequestMoney extends Method
|
|
| 169 |
|
| 170 |
|
| 171 |
/**
|
|
|
|
|
|
|
| 172 |
* @return mixed
|
| 173 |
*/
|
| 174 |
public function getRemark()
|
|
@@ -177,6 +199,8 @@ class RequestMoney extends Method
|
|
| 177 |
}
|
| 178 |
|
| 179 |
/**
|
|
|
|
|
|
|
| 180 |
* @param mixed $remark
|
| 181 |
*/
|
| 182 |
public function setRemark($remark)
|
|
@@ -185,6 +209,8 @@ class RequestMoney extends Method
|
|
| 185 |
}
|
| 186 |
|
| 187 |
/**
|
|
|
|
|
|
|
| 188 |
* @return mixed
|
| 189 |
*/
|
| 190 |
public function getReason()
|
|
@@ -193,6 +219,8 @@ class RequestMoney extends Method
|
|
| 193 |
}
|
| 194 |
|
| 195 |
/**
|
|
|
|
|
|
|
| 196 |
* @param mixed $reason
|
| 197 |
*/
|
| 198 |
public function setReason($reason)
|
|
@@ -201,6 +229,8 @@ class RequestMoney extends Method
|
|
| 201 |
}
|
| 202 |
|
| 203 |
/**
|
|
|
|
|
|
|
| 204 |
* @param Request $request
|
| 205 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 206 |
* @return array
|
| 44 |
protected $externalDescription;
|
| 45 |
|
| 46 |
/**
|
| 47 |
+
* Return request method
|
| 48 |
+
*
|
| 49 |
* @return string
|
| 50 |
*/
|
| 51 |
public function getMethod()
|
| 54 |
}
|
| 55 |
|
| 56 |
/**
|
| 57 |
+
* Returns cashcloud user email
|
| 58 |
+
*
|
| 59 |
* @return mixed
|
| 60 |
*/
|
| 61 |
public function getEmail()
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
| 67 |
+
* Sets cashcloud user email
|
| 68 |
+
*
|
| 69 |
* @param mixed $email
|
| 70 |
*/
|
| 71 |
public function setEmail($email)
|
| 74 |
}
|
| 75 |
|
| 76 |
/**
|
| 77 |
+
* Returns amount in euro cents
|
| 78 |
+
*
|
| 79 |
* @return mixed
|
| 80 |
*/
|
| 81 |
public function getAmount()
|
| 84 |
}
|
| 85 |
|
| 86 |
/**
|
| 87 |
+
* Sets amount in euro cents
|
| 88 |
+
*
|
| 89 |
* @param mixed $amount
|
| 90 |
*/
|
| 91 |
public function setAmount($amount)
|
| 94 |
}
|
| 95 |
|
| 96 |
/**
|
| 97 |
+
* Returns currency (EUR|CCR)
|
| 98 |
+
*
|
| 99 |
* @return mixed
|
| 100 |
*/
|
| 101 |
public function getCurrency()
|
| 104 |
}
|
| 105 |
|
| 106 |
/**
|
| 107 |
+
* Sets currency (EUR|CCR)
|
| 108 |
+
*
|
| 109 |
* @param mixed $currency
|
| 110 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 111 |
*/
|
| 118 |
}
|
| 119 |
|
| 120 |
/**
|
| 121 |
+
* Sets external data
|
| 122 |
+
*
|
| 123 |
* @param string $id
|
| 124 |
* @param string $reference
|
| 125 |
* @param string $description
|
| 134 |
|
| 135 |
/**
|
| 136 |
* Return method URL
|
| 137 |
+
*
|
| 138 |
* @param \CashCloud\Api\Rest\Client $api
|
| 139 |
* @return string
|
| 140 |
*/
|
| 145 |
|
| 146 |
/**
|
| 147 |
* Return method data
|
| 148 |
+
*
|
| 149 |
* @return array
|
| 150 |
*/
|
| 151 |
public function getData()
|
| 163 |
}
|
| 164 |
|
| 165 |
/**
|
| 166 |
+
* Performs the request
|
| 167 |
+
*
|
| 168 |
* @param Client $api
|
| 169 |
* @return mixed
|
| 170 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 189 |
|
| 190 |
|
| 191 |
/**
|
| 192 |
+
* Gets order remark
|
| 193 |
+
*
|
| 194 |
* @return mixed
|
| 195 |
*/
|
| 196 |
public function getRemark()
|
| 199 |
}
|
| 200 |
|
| 201 |
/**
|
| 202 |
+
* Sets order remark
|
| 203 |
+
*
|
| 204 |
* @param mixed $remark
|
| 205 |
*/
|
| 206 |
public function setRemark($remark)
|
| 209 |
}
|
| 210 |
|
| 211 |
/**
|
| 212 |
+
* Returns order reason
|
| 213 |
+
*
|
| 214 |
* @return mixed
|
| 215 |
*/
|
| 216 |
public function getReason()
|
| 219 |
}
|
| 220 |
|
| 221 |
/**
|
| 222 |
+
* Sets order reason
|
| 223 |
+
*
|
| 224 |
* @param mixed $reason
|
| 225 |
*/
|
| 226 |
public function setReason($reason)
|
| 229 |
}
|
| 230 |
|
| 231 |
/**
|
| 232 |
+
* Formats the response
|
| 233 |
+
*
|
| 234 |
* @param Request $request
|
| 235 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 236 |
* @return array
|
lib/CashCloudApi/src/CashCloud/Api/Method/SaveSettings.php
CHANGED
|
@@ -20,6 +20,7 @@ class SaveSettings extends Method
|
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Return method URL
|
|
|
|
| 23 |
* @param \CashCloud\Api\Rest\Client $api
|
| 24 |
* @return string
|
| 25 |
*/
|
|
@@ -29,6 +30,8 @@ class SaveSettings extends Method
|
|
| 29 |
}
|
| 30 |
|
| 31 |
/**
|
|
|
|
|
|
|
| 32 |
* @return string
|
| 33 |
*/
|
| 34 |
public function getMethod()
|
|
@@ -38,6 +41,7 @@ class SaveSettings extends Method
|
|
| 38 |
|
| 39 |
/**
|
| 40 |
* Return method data
|
|
|
|
| 41 |
* @return array
|
| 42 |
*/
|
| 43 |
public function getData()
|
|
@@ -49,6 +53,8 @@ class SaveSettings extends Method
|
|
| 49 |
}
|
| 50 |
|
| 51 |
/**
|
|
|
|
|
|
|
| 52 |
* @param Request $request
|
| 53 |
* @return array
|
| 54 |
*/
|
|
@@ -58,6 +64,8 @@ class SaveSettings extends Method
|
|
| 58 |
}
|
| 59 |
|
| 60 |
/**
|
|
|
|
|
|
|
| 61 |
* @return string
|
| 62 |
*/
|
| 63 |
public function getCallbackUrl()
|
|
@@ -66,6 +74,8 @@ class SaveSettings extends Method
|
|
| 66 |
}
|
| 67 |
|
| 68 |
/**
|
|
|
|
|
|
|
| 69 |
* @param string $callbackUrl
|
| 70 |
*/
|
| 71 |
public function setCallbackUrl($callbackUrl)
|
|
@@ -74,6 +84,8 @@ class SaveSettings extends Method
|
|
| 74 |
}
|
| 75 |
|
| 76 |
/**
|
|
|
|
|
|
|
| 77 |
* @return string
|
| 78 |
*/
|
| 79 |
public function getRequestExpiration()
|
|
@@ -82,6 +94,8 @@ class SaveSettings extends Method
|
|
| 82 |
}
|
| 83 |
|
| 84 |
/**
|
|
|
|
|
|
|
| 85 |
* @param string $requestExpiration
|
| 86 |
*/
|
| 87 |
public function setRequestExpiration($requestExpiration)
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Return method URL
|
| 23 |
+
*
|
| 24 |
* @param \CashCloud\Api\Rest\Client $api
|
| 25 |
* @return string
|
| 26 |
*/
|
| 30 |
}
|
| 31 |
|
| 32 |
/**
|
| 33 |
+
* Return request method
|
| 34 |
+
*
|
| 35 |
* @return string
|
| 36 |
*/
|
| 37 |
public function getMethod()
|
| 41 |
|
| 42 |
/**
|
| 43 |
* Return method data
|
| 44 |
+
*
|
| 45 |
* @return array
|
| 46 |
*/
|
| 47 |
public function getData()
|
| 53 |
}
|
| 54 |
|
| 55 |
/**
|
| 56 |
+
* Formats response
|
| 57 |
+
*
|
| 58 |
* @param Request $request
|
| 59 |
* @return array
|
| 60 |
*/
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
| 67 |
+
* Returns callback url
|
| 68 |
+
*
|
| 69 |
* @return string
|
| 70 |
*/
|
| 71 |
public function getCallbackUrl()
|
| 74 |
}
|
| 75 |
|
| 76 |
/**
|
| 77 |
+
* Sets callback url
|
| 78 |
+
*
|
| 79 |
* @param string $callbackUrl
|
| 80 |
*/
|
| 81 |
public function setCallbackUrl($callbackUrl)
|
| 84 |
}
|
| 85 |
|
| 86 |
/**
|
| 87 |
+
* Returns request expiration time
|
| 88 |
+
*
|
| 89 |
* @return string
|
| 90 |
*/
|
| 91 |
public function getRequestExpiration()
|
| 94 |
}
|
| 95 |
|
| 96 |
/**
|
| 97 |
+
* Sets request expiration time
|
| 98 |
+
*
|
| 99 |
* @param string $requestExpiration
|
| 100 |
*/
|
| 101 |
public function setRequestExpiration($requestExpiration)
|
lib/CashCloudApi/src/CashCloud/Api/Rest/Auth.php
CHANGED
|
@@ -4,6 +4,10 @@
|
|
| 4 |
* Class Auth
|
| 5 |
* @package CashCloud\Api
|
| 6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
class Auth
|
| 8 |
{
|
| 9 |
/**
|
|
@@ -21,6 +25,8 @@ class Auth
|
|
| 21 |
private $deviceId = null;
|
| 22 |
|
| 23 |
/**
|
|
|
|
|
|
|
| 24 |
* @param string $email
|
| 25 |
* @param string $password
|
| 26 |
* @param string|null $deviceId
|
|
@@ -34,10 +40,11 @@ class Auth
|
|
| 34 |
} else {
|
| 35 |
$this->deviceId = $deviceId;
|
| 36 |
}
|
| 37 |
-
|
| 38 |
}
|
| 39 |
|
| 40 |
/**
|
|
|
|
|
|
|
| 41 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 42 |
*/
|
| 43 |
public function authorizeRequest(Client $client, Request $request)
|
|
@@ -46,6 +53,8 @@ class Auth
|
|
| 46 |
}
|
| 47 |
|
| 48 |
/**
|
|
|
|
|
|
|
| 49 |
* @param Client $client
|
| 50 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 51 |
* @return string
|
|
@@ -64,6 +73,8 @@ class Auth
|
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
|
|
|
|
|
|
| 67 |
* @return string
|
| 68 |
*/
|
| 69 |
private function generateDeviceId()
|
|
@@ -72,6 +83,8 @@ class Auth
|
|
| 72 |
}
|
| 73 |
|
| 74 |
/**
|
|
|
|
|
|
|
| 75 |
* @return string
|
| 76 |
*/
|
| 77 |
public function getUsername()
|
|
@@ -80,6 +93,8 @@ class Auth
|
|
| 80 |
}
|
| 81 |
|
| 82 |
/**
|
|
|
|
|
|
|
| 83 |
* @return string
|
| 84 |
*/
|
| 85 |
public function getDeviceId()
|
| 4 |
* Class Auth
|
| 5 |
* @package CashCloud\Api
|
| 6 |
*/
|
| 7 |
+
/**
|
| 8 |
+
* Class Auth
|
| 9 |
+
* @package CashCloud\Api\Rest
|
| 10 |
+
*/
|
| 11 |
class Auth
|
| 12 |
{
|
| 13 |
/**
|
| 25 |
private $deviceId = null;
|
| 26 |
|
| 27 |
/**
|
| 28 |
+
* Construct authentication
|
| 29 |
+
*
|
| 30 |
* @param string $email
|
| 31 |
* @param string $password
|
| 32 |
* @param string|null $deviceId
|
| 40 |
} else {
|
| 41 |
$this->deviceId = $deviceId;
|
| 42 |
}
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
/**
|
| 46 |
+
* Authorizes request
|
| 47 |
+
*
|
| 48 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 49 |
*/
|
| 50 |
public function authorizeRequest(Client $client, Request $request)
|
| 53 |
}
|
| 54 |
|
| 55 |
/**
|
| 56 |
+
* Returns authorization token
|
| 57 |
+
*
|
| 58 |
* @param Client $client
|
| 59 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 60 |
* @return string
|
| 73 |
}
|
| 74 |
|
| 75 |
/**
|
| 76 |
+
* Generates random device ID
|
| 77 |
+
*
|
| 78 |
* @return string
|
| 79 |
*/
|
| 80 |
private function generateDeviceId()
|
| 83 |
}
|
| 84 |
|
| 85 |
/**
|
| 86 |
+
* Returns username
|
| 87 |
+
*
|
| 88 |
* @return string
|
| 89 |
*/
|
| 90 |
public function getUsername()
|
| 93 |
}
|
| 94 |
|
| 95 |
/**
|
| 96 |
+
* Returns device ID
|
| 97 |
+
*
|
| 98 |
* @return string
|
| 99 |
*/
|
| 100 |
public function getDeviceId()
|
lib/CashCloudApi/src/CashCloud/Api/Rest/Client.php
CHANGED
|
@@ -23,6 +23,9 @@ class Client
|
|
| 23 |
const CURRENCY_SELL = 2;
|
| 24 |
const CURRENCY_RECEIVE = 3;
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
private $salt;
|
| 27 |
/**
|
| 28 |
* @var Auth
|
|
@@ -50,6 +53,8 @@ class Client
|
|
| 50 |
private $backend = '\CashCloud\Api\Rest\CurlRequest';
|
| 51 |
|
| 52 |
/**
|
|
|
|
|
|
|
| 53 |
* @param Auth $authentication
|
| 54 |
* @param string|null $salt
|
| 55 |
* @param bool $sandbox
|
|
@@ -63,6 +68,8 @@ class Client
|
|
| 63 |
|
| 64 |
|
| 65 |
/**
|
|
|
|
|
|
|
| 66 |
* @param Request $request
|
| 67 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 68 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
|
@@ -98,12 +105,19 @@ class Client
|
|
| 98 |
return $this->salt;
|
| 99 |
}
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
public function authorizeRequest(Request $request)
|
| 102 |
{
|
| 103 |
$this->auth->authorizeRequest($this, $request);
|
| 104 |
}
|
| 105 |
|
| 106 |
/**
|
|
|
|
|
|
|
| 107 |
* @param string $method
|
| 108 |
* @return string
|
| 109 |
*/
|
|
@@ -113,6 +127,8 @@ class Client
|
|
| 113 |
}
|
| 114 |
|
| 115 |
/**
|
|
|
|
|
|
|
| 116 |
* @return Request
|
| 117 |
*/
|
| 118 |
public function createRequest()
|
| 23 |
const CURRENCY_SELL = 2;
|
| 24 |
const CURRENCY_RECEIVE = 3;
|
| 25 |
|
| 26 |
+
/**
|
| 27 |
+
* @var null|string
|
| 28 |
+
*/
|
| 29 |
private $salt;
|
| 30 |
/**
|
| 31 |
* @var Auth
|
| 53 |
private $backend = '\CashCloud\Api\Rest\CurlRequest';
|
| 54 |
|
| 55 |
/**
|
| 56 |
+
* Client Constructor
|
| 57 |
+
*
|
| 58 |
* @param Auth $authentication
|
| 59 |
* @param string|null $salt
|
| 60 |
* @param bool $sandbox
|
| 68 |
|
| 69 |
|
| 70 |
/**
|
| 71 |
+
* Returns salt from api
|
| 72 |
+
*
|
| 73 |
* @param Request $request
|
| 74 |
* @throws \CashCloud\Api\Exception\AuthException
|
| 75 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 105 |
return $this->salt;
|
| 106 |
}
|
| 107 |
|
| 108 |
+
/**
|
| 109 |
+
* Authorizes request
|
| 110 |
+
*
|
| 111 |
+
* @param Request $request
|
| 112 |
+
*/
|
| 113 |
public function authorizeRequest(Request $request)
|
| 114 |
{
|
| 115 |
$this->auth->authorizeRequest($this, $request);
|
| 116 |
}
|
| 117 |
|
| 118 |
/**
|
| 119 |
+
* Returns method url
|
| 120 |
+
*
|
| 121 |
* @param string $method
|
| 122 |
* @return string
|
| 123 |
*/
|
| 127 |
}
|
| 128 |
|
| 129 |
/**
|
| 130 |
+
* Creates new request
|
| 131 |
+
*
|
| 132 |
* @return Request
|
| 133 |
*/
|
| 134 |
public function createRequest()
|
lib/CashCloudApi/src/CashCloud/Api/Rest/CurlRequest.php
CHANGED
|
@@ -48,6 +48,8 @@ class CurlRequest implements Request
|
|
| 48 |
private $errorCode;
|
| 49 |
|
| 50 |
/**
|
|
|
|
|
|
|
| 51 |
* @param string|null $url
|
| 52 |
*/
|
| 53 |
function __construct($url = null)
|
|
@@ -56,6 +58,8 @@ class CurlRequest implements Request
|
|
| 56 |
}
|
| 57 |
|
| 58 |
/**
|
|
|
|
|
|
|
| 59 |
* @param string $url
|
| 60 |
*/
|
| 61 |
public function setUrl($url)
|
|
@@ -64,6 +68,8 @@ class CurlRequest implements Request
|
|
| 64 |
}
|
| 65 |
|
| 66 |
/**
|
|
|
|
|
|
|
| 67 |
* @param string $method
|
| 68 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 69 |
* @return int response code
|
|
@@ -108,6 +114,8 @@ class CurlRequest implements Request
|
|
| 108 |
}
|
| 109 |
|
| 110 |
/**
|
|
|
|
|
|
|
| 111 |
* @return array
|
| 112 |
*/
|
| 113 |
public function getFormattedHeaders()
|
|
@@ -120,6 +128,8 @@ class CurlRequest implements Request
|
|
| 120 |
}
|
| 121 |
|
| 122 |
/**
|
|
|
|
|
|
|
| 123 |
* @param array|string $name
|
| 124 |
* @return array
|
| 125 |
*/
|
|
@@ -133,6 +143,8 @@ class CurlRequest implements Request
|
|
| 133 |
}
|
| 134 |
|
| 135 |
/**
|
|
|
|
|
|
|
| 136 |
* @param string $name
|
| 137 |
* @param string $value
|
| 138 |
*/
|
|
@@ -142,6 +154,8 @@ class CurlRequest implements Request
|
|
| 142 |
}
|
| 143 |
|
| 144 |
/**
|
|
|
|
|
|
|
| 145 |
* @return array
|
| 146 |
*/
|
| 147 |
public function getData()
|
|
@@ -150,6 +164,8 @@ class CurlRequest implements Request
|
|
| 150 |
}
|
| 151 |
|
| 152 |
/**
|
|
|
|
|
|
|
| 153 |
* @param array $data
|
| 154 |
*/
|
| 155 |
public function setData($data)
|
|
@@ -158,6 +174,8 @@ class CurlRequest implements Request
|
|
| 158 |
}
|
| 159 |
|
| 160 |
/**
|
|
|
|
|
|
|
| 161 |
* @return int
|
| 162 |
*/
|
| 163 |
public function post()
|
|
@@ -166,6 +184,8 @@ class CurlRequest implements Request
|
|
| 166 |
}
|
| 167 |
|
| 168 |
/**
|
|
|
|
|
|
|
| 169 |
* @return int
|
| 170 |
*/
|
| 171 |
public function get()
|
|
@@ -174,6 +194,8 @@ class CurlRequest implements Request
|
|
| 174 |
}
|
| 175 |
|
| 176 |
/**
|
|
|
|
|
|
|
| 177 |
* @return string
|
| 178 |
*/
|
| 179 |
public function getMethod()
|
|
@@ -182,6 +204,8 @@ class CurlRequest implements Request
|
|
| 182 |
}
|
| 183 |
|
| 184 |
/**
|
|
|
|
|
|
|
| 185 |
* @param string $method
|
| 186 |
*/
|
| 187 |
public function setMethod($method)
|
|
@@ -190,6 +214,8 @@ class CurlRequest implements Request
|
|
| 190 |
}
|
| 191 |
|
| 192 |
/**
|
|
|
|
|
|
|
| 193 |
* @param null $field
|
| 194 |
* @return mixed|object
|
| 195 |
*/
|
|
@@ -200,6 +226,8 @@ class CurlRequest implements Request
|
|
| 200 |
}
|
| 201 |
|
| 202 |
/**
|
|
|
|
|
|
|
| 203 |
* @return null|string
|
| 204 |
*/
|
| 205 |
public function getBody()
|
|
@@ -208,6 +236,8 @@ class CurlRequest implements Request
|
|
| 208 |
}
|
| 209 |
|
| 210 |
/**
|
|
|
|
|
|
|
| 211 |
* @return int|null
|
| 212 |
*/
|
| 213 |
public function getResponseCode()
|
|
@@ -216,6 +246,8 @@ class CurlRequest implements Request
|
|
| 216 |
}
|
| 217 |
|
| 218 |
/**
|
|
|
|
|
|
|
| 219 |
* @return string|null
|
| 220 |
*/
|
| 221 |
public function getError()
|
|
@@ -224,6 +256,8 @@ class CurlRequest implements Request
|
|
| 224 |
}
|
| 225 |
|
| 226 |
/**
|
|
|
|
|
|
|
| 227 |
* @return int|null
|
| 228 |
*/
|
| 229 |
public function getErrorCode()
|
| 48 |
private $errorCode;
|
| 49 |
|
| 50 |
/**
|
| 51 |
+
* Construct request object
|
| 52 |
+
*
|
| 53 |
* @param string|null $url
|
| 54 |
*/
|
| 55 |
function __construct($url = null)
|
| 58 |
}
|
| 59 |
|
| 60 |
/**
|
| 61 |
+
* Sets request url
|
| 62 |
+
*
|
| 63 |
* @param string $url
|
| 64 |
*/
|
| 65 |
public function setUrl($url)
|
| 68 |
}
|
| 69 |
|
| 70 |
/**
|
| 71 |
+
* Executes request
|
| 72 |
+
*
|
| 73 |
* @param string $method
|
| 74 |
* @throws \CashCloud\Api\Exception\CashCloudException
|
| 75 |
* @return int response code
|
| 114 |
}
|
| 115 |
|
| 116 |
/**
|
| 117 |
+
* Returns request headers
|
| 118 |
+
*
|
| 119 |
* @return array
|
| 120 |
*/
|
| 121 |
public function getFormattedHeaders()
|
| 128 |
}
|
| 129 |
|
| 130 |
/**
|
| 131 |
+
* Returns request headers
|
| 132 |
+
*
|
| 133 |
* @param array|string $name
|
| 134 |
* @return array
|
| 135 |
*/
|
| 143 |
}
|
| 144 |
|
| 145 |
/**
|
| 146 |
+
* Sets request headers
|
| 147 |
+
*
|
| 148 |
* @param string $name
|
| 149 |
* @param string $value
|
| 150 |
*/
|
| 154 |
}
|
| 155 |
|
| 156 |
/**
|
| 157 |
+
* Returns request data
|
| 158 |
+
*
|
| 159 |
* @return array
|
| 160 |
*/
|
| 161 |
public function getData()
|
| 164 |
}
|
| 165 |
|
| 166 |
/**
|
| 167 |
+
* Sets request data
|
| 168 |
+
*
|
| 169 |
* @param array $data
|
| 170 |
*/
|
| 171 |
public function setData($data)
|
| 174 |
}
|
| 175 |
|
| 176 |
/**
|
| 177 |
+
* Executes post request
|
| 178 |
+
*
|
| 179 |
* @return int
|
| 180 |
*/
|
| 181 |
public function post()
|
| 184 |
}
|
| 185 |
|
| 186 |
/**
|
| 187 |
+
* Executes get request
|
| 188 |
+
*
|
| 189 |
* @return int
|
| 190 |
*/
|
| 191 |
public function get()
|
| 194 |
}
|
| 195 |
|
| 196 |
/**
|
| 197 |
+
* Returns request method
|
| 198 |
+
*
|
| 199 |
* @return string
|
| 200 |
*/
|
| 201 |
public function getMethod()
|
| 204 |
}
|
| 205 |
|
| 206 |
/**
|
| 207 |
+
* Sets request method
|
| 208 |
+
*
|
| 209 |
* @param string $method
|
| 210 |
*/
|
| 211 |
public function setMethod($method)
|
| 214 |
}
|
| 215 |
|
| 216 |
/**
|
| 217 |
+
* Returns parsed json
|
| 218 |
+
*
|
| 219 |
* @param null $field
|
| 220 |
* @return mixed|object
|
| 221 |
*/
|
| 226 |
}
|
| 227 |
|
| 228 |
/**
|
| 229 |
+
* Returns request body
|
| 230 |
+
*
|
| 231 |
* @return null|string
|
| 232 |
*/
|
| 233 |
public function getBody()
|
| 236 |
}
|
| 237 |
|
| 238 |
/**
|
| 239 |
+
* Returns response code
|
| 240 |
+
*
|
| 241 |
* @return int|null
|
| 242 |
*/
|
| 243 |
public function getResponseCode()
|
| 246 |
}
|
| 247 |
|
| 248 |
/**
|
| 249 |
+
* Returns cashcloud error
|
| 250 |
+
*
|
| 251 |
* @return string|null
|
| 252 |
*/
|
| 253 |
public function getError()
|
| 256 |
}
|
| 257 |
|
| 258 |
/**
|
| 259 |
+
* Returns error code
|
| 260 |
+
*
|
| 261 |
* @return int|null
|
| 262 |
*/
|
| 263 |
public function getErrorCode()
|
lib/CashCloudApi/src/CashCloud/Api/Rest/Request.php
CHANGED
|
@@ -15,63 +15,88 @@ interface Request
|
|
| 15 |
public function getBody();
|
| 16 |
|
| 17 |
/**
|
|
|
|
|
|
|
| 18 |
* @param string $name
|
| 19 |
* @param string $value
|
| 20 |
*/
|
| 21 |
public function setHeader($name, $value);
|
| 22 |
|
| 23 |
/**
|
|
|
|
|
|
|
| 24 |
* @param array|string $name
|
| 25 |
* @return array
|
| 26 |
*/
|
| 27 |
public function getHeaders($name = null);
|
| 28 |
|
| 29 |
/**
|
|
|
|
|
|
|
| 30 |
* @return string
|
| 31 |
*/
|
| 32 |
public function getMethod();
|
| 33 |
|
| 34 |
/**
|
|
|
|
|
|
|
| 35 |
* @param string $field
|
| 36 |
* @return object
|
| 37 |
*/
|
| 38 |
public function getJson($field = null);
|
| 39 |
|
| 40 |
/**
|
|
|
|
|
|
|
| 41 |
* @param array $data
|
| 42 |
*/
|
| 43 |
public function setData($data);
|
| 44 |
|
| 45 |
/**
|
|
|
|
|
|
|
| 46 |
* @param string $url
|
| 47 |
*/
|
| 48 |
public function setUrl($url);
|
| 49 |
|
| 50 |
/**
|
|
|
|
|
|
|
| 51 |
* @param string $method
|
| 52 |
*/
|
| 53 |
public function setMethod($method);
|
| 54 |
|
| 55 |
/**
|
|
|
|
|
|
|
| 56 |
* @return array
|
| 57 |
*/
|
| 58 |
public function getData();
|
| 59 |
|
| 60 |
/**
|
|
|
|
|
|
|
| 61 |
* @return int
|
| 62 |
*/
|
| 63 |
public function getResponseCode();
|
| 64 |
|
| 65 |
/**
|
|
|
|
|
|
|
| 66 |
* @return string|null
|
| 67 |
*/
|
| 68 |
public function getError();
|
|
|
|
| 69 |
/**
|
|
|
|
|
|
|
| 70 |
* @return int|null
|
| 71 |
*/
|
| 72 |
public function getErrorCode();
|
| 73 |
|
| 74 |
/**
|
|
|
|
|
|
|
| 75 |
* @param string $method
|
| 76 |
* @return int response code
|
| 77 |
*/
|
| 15 |
public function getBody();
|
| 16 |
|
| 17 |
/**
|
| 18 |
+
* Sets header
|
| 19 |
+
*
|
| 20 |
* @param string $name
|
| 21 |
* @param string $value
|
| 22 |
*/
|
| 23 |
public function setHeader($name, $value);
|
| 24 |
|
| 25 |
/**
|
| 26 |
+
* Returns header
|
| 27 |
+
*
|
| 28 |
* @param array|string $name
|
| 29 |
* @return array
|
| 30 |
*/
|
| 31 |
public function getHeaders($name = null);
|
| 32 |
|
| 33 |
/**
|
| 34 |
+
* Returns method
|
| 35 |
+
*
|
| 36 |
* @return string
|
| 37 |
*/
|
| 38 |
public function getMethod();
|
| 39 |
|
| 40 |
/**
|
| 41 |
+
* Returns json
|
| 42 |
+
*
|
| 43 |
* @param string $field
|
| 44 |
* @return object
|
| 45 |
*/
|
| 46 |
public function getJson($field = null);
|
| 47 |
|
| 48 |
/**
|
| 49 |
+
* Sets data
|
| 50 |
+
*
|
| 51 |
* @param array $data
|
| 52 |
*/
|
| 53 |
public function setData($data);
|
| 54 |
|
| 55 |
/**
|
| 56 |
+
* Sets URL
|
| 57 |
+
*
|
| 58 |
* @param string $url
|
| 59 |
*/
|
| 60 |
public function setUrl($url);
|
| 61 |
|
| 62 |
/**
|
| 63 |
+
* Sets method
|
| 64 |
+
*
|
| 65 |
* @param string $method
|
| 66 |
*/
|
| 67 |
public function setMethod($method);
|
| 68 |
|
| 69 |
/**
|
| 70 |
+
* Returns data
|
| 71 |
+
*
|
| 72 |
* @return array
|
| 73 |
*/
|
| 74 |
public function getData();
|
| 75 |
|
| 76 |
/**
|
| 77 |
+
* Returns response
|
| 78 |
+
*
|
| 79 |
* @return int
|
| 80 |
*/
|
| 81 |
public function getResponseCode();
|
| 82 |
|
| 83 |
/**
|
| 84 |
+
* Returns error
|
| 85 |
+
*
|
| 86 |
* @return string|null
|
| 87 |
*/
|
| 88 |
public function getError();
|
| 89 |
+
|
| 90 |
/**
|
| 91 |
+
* Returns error code
|
| 92 |
+
*
|
| 93 |
* @return int|null
|
| 94 |
*/
|
| 95 |
public function getErrorCode();
|
| 96 |
|
| 97 |
/**
|
| 98 |
+
* Executes request
|
| 99 |
+
*
|
| 100 |
* @param string $method
|
| 101 |
* @return int response code
|
| 102 |
*/
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Exception/ValidateExceptionTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetRatesTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetReasonsTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Method/GetSettingsTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Method/RequestMoneyTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Method/SaveSettingsTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/AuthTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/ClientTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/Api/Rest/CurlRequestTest.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/CashCloud/Test/TestCase.php
CHANGED
|
File without changes
|
lib/CashCloudApi/tests/bootstrap.php
CHANGED
|
File without changes
|
lib/CashCloudApi/vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit60b06a271c4afd54382eb508729e7f95::getLoader();
|
lib/CashCloudApi/vendor/composer/ClassLoader.php
CHANGED
|
@@ -291,8 +291,25 @@ class ClassLoader
|
|
| 291 |
return $this->classMap[$class];
|
| 292 |
}
|
| 293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
// PSR-4 lookup
|
| 295 |
-
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) .
|
| 296 |
|
| 297 |
$first = $class[0];
|
| 298 |
if (isset($this->prefixLengthsPsr4[$first])) {
|
|
@@ -321,7 +338,7 @@ class ClassLoader
|
|
| 321 |
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
| 322 |
} else {
|
| 323 |
// PEAR-like class name
|
| 324 |
-
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) .
|
| 325 |
}
|
| 326 |
|
| 327 |
if (isset($this->prefixesPsr0[$first])) {
|
|
@@ -347,9 +364,6 @@ class ClassLoader
|
|
| 347 |
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
| 348 |
return $file;
|
| 349 |
}
|
| 350 |
-
|
| 351 |
-
// Remember that this class does not exist.
|
| 352 |
-
return $this->classMap[$class] = false;
|
| 353 |
}
|
| 354 |
}
|
| 355 |
|
| 291 |
return $this->classMap[$class];
|
| 292 |
}
|
| 293 |
|
| 294 |
+
$file = $this->findFileWithExtension($class, '.php');
|
| 295 |
+
|
| 296 |
+
// Search for Hack files if we are running on HHVM
|
| 297 |
+
if ($file === null && defined('HHVM_VERSION')) {
|
| 298 |
+
$file = $this->findFileWithExtension($class, '.hh');
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
if ($file === null) {
|
| 302 |
+
// Remember that this class does not exist.
|
| 303 |
+
return $this->classMap[$class] = false;
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
return $file;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
private function findFileWithExtension($class, $ext)
|
| 310 |
+
{
|
| 311 |
// PSR-4 lookup
|
| 312 |
+
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
| 313 |
|
| 314 |
$first = $class[0];
|
| 315 |
if (isset($this->prefixLengthsPsr4[$first])) {
|
| 338 |
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
| 339 |
} else {
|
| 340 |
// PEAR-like class name
|
| 341 |
+
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
| 342 |
}
|
| 343 |
|
| 344 |
if (isset($this->prefixesPsr0[$first])) {
|
| 364 |
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
| 365 |
return $file;
|
| 366 |
}
|
|
|
|
|
|
|
|
|
|
| 367 |
}
|
| 368 |
}
|
| 369 |
|
lib/CashCloudApi/vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit454a2b2f06d5af3fb00888bd095cd4a6
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(__DIR__);
|
| 27 |
$baseDir = dirname($vendorDir);
|
|
@@ -47,7 +47,7 @@ class ComposerAutoloaderInit454a2b2f06d5af3fb00888bd095cd4a6
|
|
| 47 |
}
|
| 48 |
}
|
| 49 |
|
| 50 |
-
function
|
| 51 |
{
|
| 52 |
require $file;
|
| 53 |
}
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit60b06a271c4afd54382eb508729e7f95
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit60b06a271c4afd54382eb508729e7f95', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit60b06a271c4afd54382eb508729e7f95', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(__DIR__);
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 47 |
}
|
| 48 |
}
|
| 49 |
|
| 50 |
+
function composerRequire60b06a271c4afd54382eb508729e7f95($file)
|
| 51 |
{
|
| 52 |
require $file;
|
| 53 |
}
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>cashcloud_payments</name>
|
| 4 |
-
<version>0.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by/4.0/">
|
| 7 |
Creative Commons Attribution 4.0 International
|
|
@@ -19,20 +19,12 @@
|
|
| 19 |
<email>olaf.taupitz@cashcloud.com</email>
|
| 20 |
</author>
|
| 21 |
</authors>
|
| 22 |
-
<date>2014-
|
| 23 |
-
<time>
|
| 24 |
<contents>
|
| 25 |
<target name="magelocal">
|
| 26 |
<dir name="Mage">
|
| 27 |
<dir name="CashCloud">
|
| 28 |
-
<dir name="Block">
|
| 29 |
-
<file name="Form.php"
|
| 30 |
-
hash="d3ef5077816a2f508b3a7da7e80c3c6f" />
|
| 31 |
-
<file name="Process.php"
|
| 32 |
-
hash="1ddd06b620ce06c27510dfed0a7c477b" />
|
| 33 |
-
<file name="Info.php"
|
| 34 |
-
hash="4b22b99be40392e2adb7bdec86b7ad74" />
|
| 35 |
-
</dir>
|
| 36 |
<dir name="Model">
|
| 37 |
<dir name="Mysql4">
|
| 38 |
<file name="Setup.php"
|
|
@@ -41,28 +33,30 @@
|
|
| 41 |
<file name="PaymentMethod.php"
|
| 42 |
hash="7f970fb0d25c4eb6d8cadc1b97525a1c" />
|
| 43 |
</dir>
|
| 44 |
-
<dir name="
|
| 45 |
-
<
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
</dir>
|
| 50 |
<dir name="Adminhtml">
|
| 51 |
<dir name="Model">
|
| 52 |
-
<file name="
|
| 53 |
-
hash="
|
| 54 |
<file name="Checks.php"
|
| 55 |
hash="0927945f60fd1b13f16b55156b8445de" />
|
|
|
|
|
|
|
| 56 |
<file name="Expiration.php"
|
| 57 |
hash="ee5862cd87523a727b91841364ddc41a" />
|
| 58 |
-
<file name="Reason.php"
|
| 59 |
-
hash="93265ecf40c4283b00d1eff9abfb09b6" />
|
| 60 |
</dir>
|
| 61 |
</dir>
|
| 62 |
-
<dir name="Helper">
|
| 63 |
-
<file name="Data.php"
|
| 64 |
-
hash="341c8d49beec9f37d97ae7433cad4726" />
|
| 65 |
-
</dir>
|
| 66 |
<dir name="controllers">
|
| 67 |
<file name="PayController.php"
|
| 68 |
hash="3cff4207fa9bd237dec13dda00a57c69" />
|
|
@@ -73,6 +67,12 @@
|
|
| 73 |
<file name="system.xml"
|
| 74 |
hash="67188821ef5177363deab0aa78c37237" />
|
| 75 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
</dir>
|
| 77 |
</dir>
|
| 78 |
</target>
|
|
@@ -88,10 +88,10 @@
|
|
| 88 |
<dir name="default">
|
| 89 |
<dir name="template">
|
| 90 |
<dir name="cashcloud">
|
| 91 |
-
<file name="form.phtml"
|
| 92 |
-
hash="f135a08dd235baba859990e95df3f22e" />
|
| 93 |
<file name="process.phtml"
|
| 94 |
hash="710854e31bb803b87624f0d837a9c2f7" />
|
|
|
|
|
|
|
| 95 |
<file name="info.phtml"
|
| 96 |
hash="d00f05fe6004a057beff737d7168d7e4" />
|
| 97 |
</dir>
|
|
@@ -114,10 +114,20 @@
|
|
| 114 |
</target>
|
| 115 |
<target name="magelib">
|
| 116 |
<dir name="CashCloudApi">
|
| 117 |
-
<
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
<file name="phpunit.xml"
|
| 122 |
hash="84e70fe584254f6aa1377b0f5295cf73" />
|
| 123 |
<dir name="tests">
|
|
@@ -125,9 +135,11 @@
|
|
| 125 |
hash="d9027f2b29bfb77e1962266d414648b1" />
|
| 126 |
<dir name="CashCloud">
|
| 127 |
<dir name="Test">
|
| 128 |
-
<file name="TestCase.php"
|
| 129 |
-
hash="cc78576f845fb0af58da9d15b59f301f" />
|
| 130 |
<dir name="Api">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
<dir name="Rest">
|
| 132 |
<file name="AuthTest.php"
|
| 133 |
hash="de6f4af4bdf395b00ce843a825d38bdb" />
|
|
@@ -136,112 +148,92 @@
|
|
| 136 |
<file name="ClientTest.php"
|
| 137 |
hash="e512fb59531809f65b77a4a8f034d690" />
|
| 138 |
</dir>
|
| 139 |
-
<dir name="Exception">
|
| 140 |
-
<file name="ValidateExceptionTest.php"
|
| 141 |
-
hash="e10c57f487b08bcae84c394bdf0c30d9" />
|
| 142 |
-
</dir>
|
| 143 |
<dir name="Method">
|
| 144 |
-
<file name="GetSettingsTest.php"
|
| 145 |
-
hash="62751c64dc3b383b1607aeff27e2e863" />
|
| 146 |
<file name="RequestMoneyTest.php"
|
| 147 |
hash="8b83522fc0c55ec19a5effe09c345bf8" />
|
| 148 |
-
<file name="GetRatesTest.php"
|
| 149 |
-
hash="221247ea77d858ee5743afded4f81ea1" />
|
| 150 |
-
<file name="SaveSettingsTest.php"
|
| 151 |
-
hash="f66782fba1fe916c8ec340c6a4e2e593" />
|
| 152 |
<file name="GetReasonsTest.php"
|
| 153 |
hash="1b5ad83bf87727c99783da70df3fb9ad" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
</dir>
|
| 155 |
</dir>
|
|
|
|
|
|
|
| 156 |
</dir>
|
| 157 |
</dir>
|
| 158 |
</dir>
|
| 159 |
-
<dir name="samples">
|
| 160 |
-
<file name="GetSettings.php"
|
| 161 |
-
hash="bc5890f26445fdc11524c779fa608cf6" />
|
| 162 |
-
<file name="GetReasons.php"
|
| 163 |
-
hash="f181a8f0c74e1127af87bea42151d6ff" />
|
| 164 |
-
<file name="SaveSettings.php"
|
| 165 |
-
hash="2628c36df7f07f3c4c02b73c3c2608d0" />
|
| 166 |
-
<file name="GetRate.php"
|
| 167 |
-
hash="2713be10db66ffd9048a134ae08e925e" />
|
| 168 |
-
<file name="credentials.php"
|
| 169 |
-
hash="5902bffeb7f9b1218e4b34653a9821e5" />
|
| 170 |
-
<file name="RequestMoney.php"
|
| 171 |
-
hash="6ce3c6b1f08e1fe7f86307dae449ce95" />
|
| 172 |
-
</dir>
|
| 173 |
-
<dir name="vendor">
|
| 174 |
-
<file name="autoload.php"
|
| 175 |
-
hash="23359eb0cd6c02298c82d094afe95338" />
|
| 176 |
-
<dir name="composer">
|
| 177 |
-
<file name="autoload_namespaces.php"
|
| 178 |
-
hash="6ad7d23d00d37b668c1c42aeb4334849" />
|
| 179 |
-
<file name="ClassLoader.php"
|
| 180 |
-
hash="6d55599d5476b3defbafbda79ae4abda" />
|
| 181 |
-
<file name="autoload_real.php"
|
| 182 |
-
hash="83ffbde0329875d86247f0781c83ee64" />
|
| 183 |
-
<file name="autoload_psr4.php"
|
| 184 |
-
hash="dd3a00f0d13eb29781edd8c77d4c5100" />
|
| 185 |
-
<file name="autoload_classmap.php"
|
| 186 |
-
hash="8645d3a4e3ad87e7cf4d88a46717aab4" />
|
| 187 |
-
</dir>
|
| 188 |
-
</dir>
|
| 189 |
<dir name="src">
|
| 190 |
<dir name="CashCloud">
|
| 191 |
<dir name="Api">
|
| 192 |
-
<dir name="Rest">
|
| 193 |
-
<file name="CurlRequest.php"
|
| 194 |
-
hash="6b26b31e77e7d4f5df91217bf6ba3af9" />
|
| 195 |
-
<file name="Request.php"
|
| 196 |
-
hash="3b55b826fcc2a4b7c143a03715f9b150" />
|
| 197 |
-
<file name="Auth.php"
|
| 198 |
-
hash="b823125f63372a0943a7289bd960633c" />
|
| 199 |
-
<file name="Client.php"
|
| 200 |
-
hash="4283bbeea546ba41d1d27011a3017783" />
|
| 201 |
-
</dir>
|
| 202 |
<dir name="Exception">
|
|
|
|
|
|
|
| 203 |
<file name="AuthException.php"
|
| 204 |
hash="2e908258e593142961c7f0475b161b03" />
|
| 205 |
<file name="CashCloudException.php"
|
| 206 |
hash="99efbf3eb2432500ea1741e546d4936f" />
|
| 207 |
-
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
</dir>
|
| 210 |
<dir name="Method">
|
| 211 |
-
<file name="GetSettings.php"
|
| 212 |
-
hash="2f73322693e6856bbb278f1e7f4a9bc4" />
|
| 213 |
-
<file name="GetReasons.php"
|
| 214 |
-
hash="15b12947d116f979475d1d77292283bd" />
|
| 215 |
-
<file name="GetTransactions.php"
|
| 216 |
-
hash="09ac4cf83a4992470050c985e827e177" />
|
| 217 |
-
<file name="Refund.php"
|
| 218 |
-
hash="dea8056d0fb96ae55416801c67ad1f2c" />
|
| 219 |
<file name="SaveSettings.php"
|
| 220 |
-
hash="
|
| 221 |
<file name="Method.php"
|
| 222 |
-
hash="
|
| 223 |
-
<file name="GetRates.php"
|
| 224 |
-
hash="e87a8595e22be353cbb4594ce32f685f" />
|
| 225 |
<file name="RequestMoney.php"
|
| 226 |
-
hash="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
</dir>
|
| 228 |
</dir>
|
| 229 |
</dir>
|
| 230 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
</dir>
|
| 232 |
</target>
|
| 233 |
<target name="mageskin">
|
| 234 |
<dir name="frontend">
|
| 235 |
<dir name="base">
|
| 236 |
<dir name="default">
|
| 237 |
-
<dir name="images">
|
| 238 |
-
<dir name="cashcloud">
|
| 239 |
-
<file name="logo.png"
|
| 240 |
-
hash="7b61cdf3b30ecfe0c14f0941748daac9" />
|
| 241 |
-
<file name="loader.gif"
|
| 242 |
-
hash="b78b8cd94c60b5a6515bfaf5ce974b75" />
|
| 243 |
-
</dir>
|
| 244 |
-
</dir>
|
| 245 |
<dir name="js">
|
| 246 |
<file name="cashcloud.js"
|
| 247 |
hash="d41d8cd98f00b204e9800998ecf8427e" />
|
|
@@ -250,16 +242,24 @@
|
|
| 250 |
<file name="cashcloud.css"
|
| 251 |
hash="1d4ce0ed49ce6ebeb2bb2f3573bbf4ba" />
|
| 252 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
</dir>
|
| 254 |
</dir>
|
| 255 |
</dir>
|
| 256 |
</target>
|
| 257 |
<target name="magelocale">
|
| 258 |
-
<dir name="
|
| 259 |
<file name="Mage_CashCloud.csv"
|
| 260 |
hash="81cc71f688fb48b92b955a7f05ff8a69" />
|
| 261 |
</dir>
|
| 262 |
-
<dir name="
|
| 263 |
<file name="Mage_CashCloud.csv"
|
| 264 |
hash="81cc71f688fb48b92b955a7f05ff8a69" />
|
| 265 |
</dir>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>cashcloud_payments</name>
|
| 4 |
+
<version>0.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by/4.0/">
|
| 7 |
Creative Commons Attribution 4.0 International
|
| 19 |
<email>olaf.taupitz@cashcloud.com</email>
|
| 20 |
</author>
|
| 21 |
</authors>
|
| 22 |
+
<date>2014-05-21</date>
|
| 23 |
+
<time>16:32:14</time>
|
| 24 |
<contents>
|
| 25 |
<target name="magelocal">
|
| 26 |
<dir name="Mage">
|
| 27 |
<dir name="CashCloud">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
<dir name="Model">
|
| 29 |
<dir name="Mysql4">
|
| 30 |
<file name="Setup.php"
|
| 33 |
<file name="PaymentMethod.php"
|
| 34 |
hash="7f970fb0d25c4eb6d8cadc1b97525a1c" />
|
| 35 |
</dir>
|
| 36 |
+
<dir name="Block">
|
| 37 |
+
<file name="Process.php"
|
| 38 |
+
hash="1ddd06b620ce06c27510dfed0a7c477b" />
|
| 39 |
+
<file name="Info.php"
|
| 40 |
+
hash="4b22b99be40392e2adb7bdec86b7ad74" />
|
| 41 |
+
<file name="Form.php"
|
| 42 |
+
hash="d3ef5077816a2f508b3a7da7e80c3c6f" />
|
| 43 |
+
</dir>
|
| 44 |
+
<dir name="Helper">
|
| 45 |
+
<file name="Data.php"
|
| 46 |
+
hash="341c8d49beec9f37d97ae7433cad4726" />
|
| 47 |
</dir>
|
| 48 |
<dir name="Adminhtml">
|
| 49 |
<dir name="Model">
|
| 50 |
+
<file name="Reason.php"
|
| 51 |
+
hash="93265ecf40c4283b00d1eff9abfb09b6" />
|
| 52 |
<file name="Checks.php"
|
| 53 |
hash="0927945f60fd1b13f16b55156b8445de" />
|
| 54 |
+
<file name="Config.php"
|
| 55 |
+
hash="473fad0327a658612816993c22dc0614" />
|
| 56 |
<file name="Expiration.php"
|
| 57 |
hash="ee5862cd87523a727b91841364ddc41a" />
|
|
|
|
|
|
|
| 58 |
</dir>
|
| 59 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
<dir name="controllers">
|
| 61 |
<file name="PayController.php"
|
| 62 |
hash="3cff4207fa9bd237dec13dda00a57c69" />
|
| 67 |
<file name="system.xml"
|
| 68 |
hash="67188821ef5177363deab0aa78c37237" />
|
| 69 |
</dir>
|
| 70 |
+
<dir name="sql">
|
| 71 |
+
<dir name="cashcloud_setup">
|
| 72 |
+
<file name="mysql4-install-0.0.1.php"
|
| 73 |
+
hash="50b96b7c003ab0c754f1e128cdab04ad" />
|
| 74 |
+
</dir>
|
| 75 |
+
</dir>
|
| 76 |
</dir>
|
| 77 |
</dir>
|
| 78 |
</target>
|
| 88 |
<dir name="default">
|
| 89 |
<dir name="template">
|
| 90 |
<dir name="cashcloud">
|
|
|
|
|
|
|
| 91 |
<file name="process.phtml"
|
| 92 |
hash="710854e31bb803b87624f0d837a9c2f7" />
|
| 93 |
+
<file name="form.phtml"
|
| 94 |
+
hash="f135a08dd235baba859990e95df3f22e" />
|
| 95 |
<file name="info.phtml"
|
| 96 |
hash="d00f05fe6004a057beff737d7168d7e4" />
|
| 97 |
</dir>
|
| 114 |
</target>
|
| 115 |
<target name="magelib">
|
| 116 |
<dir name="CashCloudApi">
|
| 117 |
+
<dir name="samples">
|
| 118 |
+
<file name="GetRate.php"
|
| 119 |
+
hash="2713be10db66ffd9048a134ae08e925e" />
|
| 120 |
+
<file name="SaveSettings.php"
|
| 121 |
+
hash="2628c36df7f07f3c4c02b73c3c2608d0" />
|
| 122 |
+
<file name="RequestMoney.php"
|
| 123 |
+
hash="6ce3c6b1f08e1fe7f86307dae449ce95" />
|
| 124 |
+
<file name="credentials.php"
|
| 125 |
+
hash="5902bffeb7f9b1218e4b34653a9821e5" />
|
| 126 |
+
<file name="GetSettings.php"
|
| 127 |
+
hash="bc5890f26445fdc11524c779fa608cf6" />
|
| 128 |
+
<file name="GetReasons.php"
|
| 129 |
+
hash="f181a8f0c74e1127af87bea42151d6ff" />
|
| 130 |
+
</dir>
|
| 131 |
<file name="phpunit.xml"
|
| 132 |
hash="84e70fe584254f6aa1377b0f5295cf73" />
|
| 133 |
<dir name="tests">
|
| 135 |
hash="d9027f2b29bfb77e1962266d414648b1" />
|
| 136 |
<dir name="CashCloud">
|
| 137 |
<dir name="Test">
|
|
|
|
|
|
|
| 138 |
<dir name="Api">
|
| 139 |
+
<dir name="Exception">
|
| 140 |
+
<file name="ValidateExceptionTest.php"
|
| 141 |
+
hash="e10c57f487b08bcae84c394bdf0c30d9" />
|
| 142 |
+
</dir>
|
| 143 |
<dir name="Rest">
|
| 144 |
<file name="AuthTest.php"
|
| 145 |
hash="de6f4af4bdf395b00ce843a825d38bdb" />
|
| 148 |
<file name="ClientTest.php"
|
| 149 |
hash="e512fb59531809f65b77a4a8f034d690" />
|
| 150 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
<dir name="Method">
|
|
|
|
|
|
|
| 152 |
<file name="RequestMoneyTest.php"
|
| 153 |
hash="8b83522fc0c55ec19a5effe09c345bf8" />
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
<file name="GetReasonsTest.php"
|
| 155 |
hash="1b5ad83bf87727c99783da70df3fb9ad" />
|
| 156 |
+
<file name="GetSettingsTest.php"
|
| 157 |
+
hash="62751c64dc3b383b1607aeff27e2e863" />
|
| 158 |
+
<file name="SaveSettingsTest.php"
|
| 159 |
+
hash="f66782fba1fe916c8ec340c6a4e2e593" />
|
| 160 |
+
<file name="GetRatesTest.php"
|
| 161 |
+
hash="221247ea77d858ee5743afded4f81ea1" />
|
| 162 |
</dir>
|
| 163 |
</dir>
|
| 164 |
+
<file name="TestCase.php"
|
| 165 |
+
hash="cc78576f845fb0af58da9d15b59f301f" />
|
| 166 |
</dir>
|
| 167 |
</dir>
|
| 168 |
</dir>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
<dir name="src">
|
| 170 |
<dir name="CashCloud">
|
| 171 |
<dir name="Api">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
<dir name="Exception">
|
| 173 |
+
<file name="ValidateException.php"
|
| 174 |
+
hash="0ad42a0a57ef9375eff856d785be4416" />
|
| 175 |
<file name="AuthException.php"
|
| 176 |
hash="2e908258e593142961c7f0475b161b03" />
|
| 177 |
<file name="CashCloudException.php"
|
| 178 |
hash="99efbf3eb2432500ea1741e546d4936f" />
|
| 179 |
+
</dir>
|
| 180 |
+
<dir name="Rest">
|
| 181 |
+
<file name="Request.php"
|
| 182 |
+
hash="bd042d8d659f761401b5e018c9659b56" />
|
| 183 |
+
<file name="Auth.php"
|
| 184 |
+
hash="eb9b86a654ca9eb18d8e8296aecef053" />
|
| 185 |
+
<file name="Client.php"
|
| 186 |
+
hash="f38915cb0e063f03c849eb4707b82c05" />
|
| 187 |
+
<file name="CurlRequest.php"
|
| 188 |
+
hash="5a9a9394dda28cf1ae931a444aec437e" />
|
| 189 |
</dir>
|
| 190 |
<dir name="Method">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
<file name="SaveSettings.php"
|
| 192 |
+
hash="c2b89ab82f46665d7058aefa3805d2a1" />
|
| 193 |
<file name="Method.php"
|
| 194 |
+
hash="ed6fb4b76e6b169f1bde7db4b796a4bb" />
|
|
|
|
|
|
|
| 195 |
<file name="RequestMoney.php"
|
| 196 |
+
hash="4a54c849396d9c925b20e0bc51e780b6" />
|
| 197 |
+
<file name="Refund.php"
|
| 198 |
+
hash="f220ac262f5f86abd553ca3dafd3b34b" />
|
| 199 |
+
<file name="GetTransactions.php"
|
| 200 |
+
hash="f04180b23f4247f4e013c721b5a46ded" />
|
| 201 |
+
<file name="GetSettings.php"
|
| 202 |
+
hash="83bd592acf928f426760a909d68236af" />
|
| 203 |
+
<file name="GetRates.php"
|
| 204 |
+
hash="91732fcc50ca3a1ab7616223e9ee5e6a" />
|
| 205 |
+
<file name="GetReasons.php"
|
| 206 |
+
hash="3ff3776c9e0ed05195a362e7aabeaa62" />
|
| 207 |
</dir>
|
| 208 |
</dir>
|
| 209 |
</dir>
|
| 210 |
</dir>
|
| 211 |
+
<file name="README.md"
|
| 212 |
+
hash="aab32792745c5d2c37ab89b374dd4679" />
|
| 213 |
+
<file name="composer.json"
|
| 214 |
+
hash="f028b4aeea73abffc53d6b3537731848" />
|
| 215 |
+
<dir name="vendor">
|
| 216 |
+
<dir name="composer">
|
| 217 |
+
<file name="autoload_psr4.php"
|
| 218 |
+
hash="dd3a00f0d13eb29781edd8c77d4c5100" />
|
| 219 |
+
<file name="autoload_classmap.php"
|
| 220 |
+
hash="8645d3a4e3ad87e7cf4d88a46717aab4" />
|
| 221 |
+
<file name="ClassLoader.php"
|
| 222 |
+
hash="3adcacc118804f98f1fd888e2575f00a" />
|
| 223 |
+
<file name="autoload_namespaces.php"
|
| 224 |
+
hash="6ad7d23d00d37b668c1c42aeb4334849" />
|
| 225 |
+
<file name="autoload_real.php"
|
| 226 |
+
hash="ec07aaf8d8b23827afbc6ba519a6e560" />
|
| 227 |
+
</dir>
|
| 228 |
+
<file name="autoload.php"
|
| 229 |
+
hash="e3f18817dc5427187c7042137ef7fb55" />
|
| 230 |
+
</dir>
|
| 231 |
</dir>
|
| 232 |
</target>
|
| 233 |
<target name="mageskin">
|
| 234 |
<dir name="frontend">
|
| 235 |
<dir name="base">
|
| 236 |
<dir name="default">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
<dir name="js">
|
| 238 |
<file name="cashcloud.js"
|
| 239 |
hash="d41d8cd98f00b204e9800998ecf8427e" />
|
| 242 |
<file name="cashcloud.css"
|
| 243 |
hash="1d4ce0ed49ce6ebeb2bb2f3573bbf4ba" />
|
| 244 |
</dir>
|
| 245 |
+
<dir name="images">
|
| 246 |
+
<dir name="cashcloud">
|
| 247 |
+
<file name="logo.png"
|
| 248 |
+
hash="7b61cdf3b30ecfe0c14f0941748daac9" />
|
| 249 |
+
<file name="loader.gif"
|
| 250 |
+
hash="b78b8cd94c60b5a6515bfaf5ce974b75" />
|
| 251 |
+
</dir>
|
| 252 |
+
</dir>
|
| 253 |
</dir>
|
| 254 |
</dir>
|
| 255 |
</dir>
|
| 256 |
</target>
|
| 257 |
<target name="magelocale">
|
| 258 |
+
<dir name="en_GB">
|
| 259 |
<file name="Mage_CashCloud.csv"
|
| 260 |
hash="81cc71f688fb48b92b955a7f05ff8a69" />
|
| 261 |
</dir>
|
| 262 |
+
<dir name="en_US">
|
| 263 |
<file name="Mage_CashCloud.csv"
|
| 264 |
hash="81cc71f688fb48b92b955a7f05ff8a69" />
|
| 265 |
</dir>
|
