Error, code 234 : Erreur de format calling GetMoneyInTransDetails
josecelano opened this issue · 1 comments
josecelano commented
Hi, I have started using UUID for wkToken
but I get that error. Later I have changed the token generator to
private function secureRandomStr($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
{
$str = '';
$max = mb_strlen($keyspace, '8bit') - 1;
for ($i = 0; $i < $length; ++$i) {
$str .= $keyspace[random_int(0, $max)];
}
return $str;
}
Copyrigth: http://stackoverflow.com/questions/4356289/php-random-string-generator/31107425#31107425
but I have the same errror response.
Finally I have also tryed with the function used in samples
str_replace('.', '', microtime(true).rand());
But the same response.
josecelano commented
Problem fixed. I was passing merchantToken
also in transactionId
instead of passing emtpy string for transactionId
(processing a redirect to browser with GET).
$res = $this->lemonWayApi->GetMoneyInTransDetails(array(
'transactionId' => $moneyInID,
'transactionComment' => '',
'transactionMerchantToken' => $merchantToken
));