diff --git a/Charge.php b/Charge.php index 7abd5c4..363df1c 100644 --- a/Charge.php +++ b/Charge.php @@ -17,12 +17,10 @@ private function pCharge() {return [ /** * 2016-10-06 * @used-by \Dfe\Square\Method::charge() - * @param Method $method + * @param Method $m * @param string $token * @param float|null $amount [optional] * @return array(string => mixed) */ - static function p(Method $method, $token, $amount = null) {return (new self([ - self::$P__AMOUNT => $amount, self::$P__METHOD => $method, self::$P__TOKEN => $token - ]))->pCharge();} + static function p(Method $m, $token, $amount = null) {return (new self($m, $token, $amount))->pCharge();} } \ No newline at end of file diff --git a/composer.json b/composer.json index 1c87fa3..30f5ba6 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/square" - ,"version": "1.0.26" + ,"version": "1.1.0" ,"description": "The «Square» payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/square" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=2.1.1", "mage2pro/square-php-sdk": "^2.0.2"} + ,"require": {"mage2pro/core": ">=2.2.0", "mage2pro/square-php-sdk": "^2.0.2"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Square\\": ""}} ,"keywords": [ "API"