diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 80d4d17..317d6b9 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -229,7 +229,7 @@ abstract class BasicWePay $data['result'] = $aes->decryptToString( $data['resource']['associated_data'], $data['resource']['nonce'], - $data['resource']['algorithm'] + $data['resource']['ciphertext'] ); } return $data;