Closed izaa closed 4 years ago
Can be the environment, can be the public/private keys and sometimes can be the parameters you are passing... If this doesnt help, the library exposes all crypto methods, but is strange that 1 method work and not the others. Are you passing all default params?
Trustly has this site https://trustly.com/en/developer/api/#/signaturetester what helped me to figure out what was the problem.
I was sending RequestDirectDebitMandate with integer value 0. and the library didn't serialize the zero value at all: "RequestDirectDebitMandate" should have been "RequestDirectDebitMandate0"
I think the problem is these line of code: (lib/trustlySerializeData.js)
if (data[k] === null || !data[k]) {
serializedData = serializedData + k;
}
Yes, make sense, thanks! I will publish the fix in the next days
In the meantime you can send to the funtion string(0) instead of number 0
fixed in 3.1.0
Hi,
the deposit-method works fine, but the selectAccount gives following error:
Any clues how to figure out? Thanks!