Skip to content

Commit

Permalink
fixed #2737
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Aug 28, 2023
1 parent 134e056 commit 38ab6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pay/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function decodeXmlMessage(string $contents): array
throw new InvalidArgumentException('V2 secret key is required.');
}

$attributes = Xml::parse(AesEcb::decrypt($attributes['req_info'], $key, iv: ''));
$attributes = Xml::parse(AesEcb::decrypt($attributes['req_info'], md5($key), iv: ''));
}

if (! is_array($attributes)) {
Expand Down

0 comments on commit 38ab6af

Please sign in to comment.