Skip to content

Commit

Permalink
2.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 4, 2020
1 parent dab8007 commit 80faa3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
26 changes: 11 additions & 15 deletions Facade/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,17 @@ private function refundAdjustments($type) {
$key = "adjustment_$type"; /** @var string $key */
$a = $cm[$key]; /** @var float $a */
$label = ucfirst($type) . ' Adjustment'; /** @var string $label */
return !$a ? [] : (
!$multiCurrency
? [$label => $a]
: [
"{$label} ({$iso3})" => $a
/**
* 2016-03-18
* @uses \Magento\Sales\Api\Data\CreditmemoInterface::BASE_ADJUSTMENT_POSITIVE
* https://github.com/magento/magento2/blob/2.1.0/app/code/Magento/Sales/Api/Data/CreditmemoInterface.php#L112-L115
* @uses \Magento\Sales\Api\Data\CreditmemoInterface::BASE_ADJUSTMENT_NEGATIVE
* https://github.com/magento/magento2/blob/2.1.0/app/code/Magento/Sales/Api/Data/CreditmemoInterface.php#L56-L59
*/
,"{$label} ({$iso3Base})" => $cm["base_$key"]
]
);
return !$a ? [] : (!$multiCurrency ? [$label => $a] : [
df_desc($label, $iso3) => $a
/**
* 2016-03-18
* @uses \Magento\Sales\Api\Data\CreditmemoInterface::BASE_ADJUSTMENT_POSITIVE
* https://github.com/magento/magento2/blob/2.1.0/app/code/Magento/Sales/Api/Data/CreditmemoInterface.php#L112-L115
* @uses \Magento\Sales\Api\Data\CreditmemoInterface::BASE_ADJUSTMENT_NEGATIVE
* https://github.com/magento/magento2/blob/2.1.0/app/code/Magento/Sales/Api/Data/CreditmemoInterface.php#L56-L59
*/
,df_desc($label, $iso3Base) => $cm["base_$key"]
]);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/stripe"
,"version": "2.7.5"
,"version": "2.7.6"
,"description": "Stripe integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/stripe"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=4.0.7", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=7.19.1"}
,"require": {"mage2pro/core": ">=5.9.7", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=7.19.1"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"3D Secure"
Expand Down

0 comments on commit 80faa3b

Please sign in to comment.