Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correzione parsing risposta xml #4

Open
agavss opened this issue Feb 4, 2021 · 1 comment
Open

Correzione parsing risposta xml #4

agavss opened this issue Feb 4, 2021 · 1 comment

Comments

@agavss
Copy link

agavss commented Feb 4, 2021

Ciao Mattia,
sto utilizzando la tua libreria e ho notato un errore nella verifica della signature sulla chiamata "verify".
Ho scoperto che, durante il parsing della risposta xml, viene fatto il trim dei campi, questo genera un'incongruenza e quindi la signature generata non corrisponde a quella ricevuta dal server.
Nel mio caso specifico il campo "authCode" è "44341 ", che viene importato come "44341".

Ti segnalo la riga

$fields[$item->getName()] = \trim((string) $item);

Dovrebbe diventare così:

$fields[$item->getName()] = (string) $item;

Colgo l'occasione per ringraziarti per la creazione di questa libreria.

Ciao e grazie

@mattiabasone
Copy link
Owner

Ciao!
Ma davvero esistono degli authCode con gli spazi? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants