Closed lucianoob closed 11 months ago
After some time researching, I understood the problem that was occurring. Here in Brazil, since we speak Portuguese, we have many words with accents, and this caused the issue when converting the object to a string due to a poorly prepared implementation within the SDK.
The starting point of the problem begins in the method below (highlighted line):
When executing this entire method, at the end, there is a deserialization in the "return" statement:
When executing this "deserialize" operation, there is an automatic execution of the "__toString()" method of the "vendor/cybersource/rest-client-php/lib/Model/RiskV1AuthenticationsPost201Response.php" model:
This method fails to convert the "firstName," "lastName," "address1," and "address2" fields with accents to strings.
Well, the solution was to remove these special characters from these fields and send them without accents.
Thank you!
Note: The version of the SDK used was v0.0.40 (the current version still has this issue).
Hi,
I have some transactions in use with the PHP SDK returning this message that shows an error inside the lib. What can be wrong in the implementation?
And my code just sends the requestObj:![image](https://github.com/CyberSource/cybersource-rest-client-php/assets/6475464/a994bff9-7a7f-45cc-ac62-ce30ce0aa89f)
And then it performs payer authentication (line 204 where the error warns) :![image](https://github.com/CyberSource/cybersource-rest-client-php/assets/6475464/aa248daf-5079-4b33-ab02-e3addec212da)
PS.: only a few transactions point to this error (~2% - ~4%), so the implementation works.