Skip to content

Commit 683c4c3

Browse files
committed
change transact response handling in AIM, as new field added to the end of transact response
1 parent 7207388 commit 683c4c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/AuthorizeNetAIM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public function __construct($response, $delimiter, $encap_char, $custom_fields)
475475

476476
// Set custom fields
477477
if ($count = count($custom_fields)) {
478-
$custom_fields_response = array_slice($this->_response_array, -$count, $count);
478+
$custom_fields_response = array_slice($this->_response_array, -$count-1, $count);
479479
$i = 0;
480480
foreach ($custom_fields as $key => $value) {
481481
$this->$key = $custom_fields_response[$i];

0 commit comments

Comments
 (0)