Skip to content

Commit 46c8e04

Browse files
refactoring
1 parent 8c530bb commit 46c8e04

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

API/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function _construct() {
2020
,'xmlns' => 'http://www.litle.com/schema'
2121
]);
2222
$this->addFilterResBV(function($x) {
23-
$a = df_xml_parse_a($x); /** @var array(string => mixed) $a */
23+
$a = df_xml2a($x); /** @var array(string => mixed) $a */
2424
return dfa_try($a, 'authorizationResponse', 'saleResponse', '@');
2525
});
2626
}

Charge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private function pCharge():array {
2727
$liIndex = 1; /** @var int $liIndex */
2828
return [
2929
'authentication' => ['user' => $s->publicKey(), 'password' => $s->privateKey()]
30-
,df_xml_node($capture ? 'sale' : 'authorization'
30+
,df_xml_go($capture ? 'sale' : 'authorization'
3131
,['customerId' => $this->customerEmail(), 'reportGroup' => $s->merchantID()]
3232
,[
3333
# 2018-12-19

Test/CaseT/Charge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function docBody(string $type = 'success', bool $capture = false):array
6969
$liIndex = 1;
7070
return [
7171
'authentication' => ['user' => $s->publicKey(), 'password' => $s->privateKey()]
72-
,df_xml_node($capture ? 'sale' : 'authorization'
72+
,df_xml_go($capture ? 'sale' : 'authorization'
7373
,['customerId' => 'admin@mage2.pro', 'reportGroup' => $s->merchantID()]
7474
,[
7575
'orderId' => $oid

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/vantiv"
3-
,"version": "1.2.1"
3+
,"version": "1.2.2"
44
,"description": "Vantiv integration with Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/extensions/vantiv"
@@ -11,7 +11,7 @@
1111
"homepage": "https://upwork.com/fl/mage2pro",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=10.7.0"}
14+
,"require": {"mage2pro/core": ">=11.4.2"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Vantiv\\": ""}}
1616
,"keywords": [
1717
"API"

0 commit comments

Comments
 (0)