From bb3f5723b3698e202deacb0447e2cd548af350f3 Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Sat, 19 Aug 2017 08:15:29 +0300 Subject: [PATCH] 1.5.18 --- Charge.php | 21 +++++++++++++-------- composer.json | 4 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Charge.php b/Charge.php index 519faee..183dcfe 100644 --- a/Charge.php +++ b/Charge.php @@ -12,6 +12,18 @@ * @method Settings s() */ final class Charge extends \Df\PaypalClone\Charge { + /** + * 2017-08-19 + * 2016-08-26 + * «5.1.1.2 Transaction Amount». Mandatoryю Numeric, two decimal places, from 0.01 to 99999999.99. + * «The total amount of the purchase transaction. By default the currency is AUD (Australian Dollars).» + * @override + * @see \Df\PaypalClone\Charge::k_Amount() + * @used-by \Df\PaypalClone\Charge::p() + * @return string + */ + protected function k_Amount() {return 'EPS_AMOUNT';} + /** * 2017-08-19 * 2016-08-26 @@ -72,7 +84,7 @@ protected function k_Signature() {return 'EPS_FINGERPRINT';} * @return string */ protected function amountFormat($a) {return df_f2(parent::amountFormat($a));} - + /** * 2016-08-26 * @override @@ -91,13 +103,6 @@ protected function pCharge() {$s = $this->s(); return [ // E.g. May comprise of a timestamp padded with 0s for uniqueness: "20110714112034872000".» '3D_XID' => str_pad($this->id(), 20, '0') // 2016-08-26 - // «5.1.1.2 Transaction Amount». - // Mandatory - // Numeric, two decimal places, from 0.01 to 99999999.99 - // «The total amount of the purchase transaction. - // By default the currency is AUD (Australian Dollars).» - ,'EPS_AMOUNT' => $this->amountF() - // 2016-08-26 // Optional // String, length 2, ISO 4217 currency code // «Payee’s Country two letter code» diff --git a/composer.json b/composer.json index 7116594..334c4c5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/securepay" - ,"version": "1.5.17" + ,"version": "1.5.18" ,"description": "The «SecurePay» payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/securepay" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=2.10.32"} + ,"require": {"mage2pro/core": ">=2.10.33"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\SecurePay\\": ""}} ,"keywords": [ "3D Secure"