diff --git a/CHANGELOG.md b/CHANGELOG.md index e98dd3b..6e87aef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ -* 4.45-RC1 (2016-01-10) +* 4.45 (2016-01-22) + + * add of softDescriptor payment attribute (Payment class) + +* 4.44.1 (2016-01-20) * Fisrt Payline release deployed on Composer diff --git a/README.md b/README.md index b191183..da88069 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ Usage use Payline\PaylineSDK; // create an instance - $paylineSDK = new PaylineSDK($merchant_id, $access_key, $proxy_host, $proxy_port, $proxy_login, $proxy_password, $environment[, $pathLog]); + $paylineSDK = new PaylineSDK($merchant_id, $access_key, $proxy_host, $proxy_port, $proxy_login, $proxy_password, $environment[, $pathLog= null[, $logLevel = Logger::INFO]]); /* $environment determines in which Payline environment your request are targeted. It should be filled with either PaylineSDK::ENV_HOMO (for testing purpose) or PaylineSDK::ENV_PROD (real life) - If $pathLog is null, log files will be written under default logs directory. Set to 0 if you don't want any log, or fill with your custom log files path + If $pathLog is null, log files will be written under default logs directory. Fill with your custom log files path */ // call a web service, for example doWebPayment @@ -51,6 +51,7 @@ Requirements ------------ Compliant with PHP 5.3 and over +Requires monolog/monolog, just let Composer do the job Author diff --git a/src/Payline/PaylineSDK.php b/src/Payline/PaylineSDK.php index 5c1df84..595f16c 100644 --- a/src/Payline/PaylineSDK.php +++ b/src/Payline/PaylineSDK.php @@ -38,12 +38,12 @@ class PaylineSDK /** * Payline release corresponding to this version of the package */ - const PAYLINE_RELEASE = '4.44.1'; + const SDK_RELEASE = 'PHP SDK 4.45'; /** * path to WSDL file */ - const WSDL = 'v4.44.1.wsdl'; + const WSDL = 'v4.45.wsdl'; /** * homologation environment flag @@ -170,9 +170,14 @@ class PaylineSDK */ const PROD_GET_TOKEN_SERVLET = "https://webpayment.payline.com/webpayment/getToken"; - // Administration center + /** + * homologation administration center URL + */ const HOMO_CA = 'https://homologation-admin.payline.com'; + /** + * administration center URL + */ const PROD_CA = 'https://admin.payline.com'; /** @@ -249,7 +254,6 @@ function __construct($merchant_id, $access_key, $proxy_host, $proxy_port, $proxy $this->header_soap['proxy_login'] = $proxy_login; $this->header_soap['proxy_password'] = $proxy_password; } - $this->environment = $environment; if (strcmp($environment, PaylineSDK::ENV_HOMO) == 0) { $this->webServicesEndpoint = PaylineSDK::HOMO_ENDPOINT; } elseif (strcmp($environment, PaylineSDK::ENV_PROD) == 0) { @@ -260,7 +264,7 @@ function __construct($merchant_id, $access_key, $proxy_host, $proxy_port, $proxy $this->orderDetails = array(); $this->privateData = array(); - ini_set('user_agent', "PHP\r\nversion: PHP SDK " . PaylineSDK::PAYLINE_RELEASE); + ini_set('user_agent', "PHP\r\nversion: " . PaylineSDK::SDK_RELEASE); } /** @@ -1019,7 +1023,7 @@ private function webServiceRequest($array, $WSRequest, $PaylineAPI, $Method) public function usedBy($toolName) { $this->usedBy = $toolName; - ini_set('user_agent', "PHP\r\nversion: " . $toolName . " - PHP SDK " . PaylineSDK::PAYLINE_RELEASE); + ini_set('user_agent', "PHP\r\nversion: " . $toolName . ' - ' . PaylineSDK::SDK_RELEASE); } /** diff --git a/src/Payline/Payment.class.php b/src/Payline/Payment.class.php index ffc166c..608d81c 100644 --- a/src/Payline/Payment.class.php +++ b/src/Payline/Payment.class.php @@ -25,4 +25,6 @@ class Payment public $contractNumber; public $differedActionDate; + + public $softDescriptor; } \ No newline at end of file diff --git a/src/Payline/v4.44.1.wsdl b/src/Payline/v4.45.wsdl similarity index 99% rename from src/Payline/v4.44.1.wsdl rename to src/Payline/v4.45.wsdl index acb3089..4c850ed 100644 --- a/src/Payline/v4.44.1.wsdl +++ b/src/Payline/v4.45.wsdl @@ -1617,9 +1617,10 @@ + - + @@ -1652,6 +1653,7 @@ +