Skip to content

Fix and clean url query generator#2

Open
joanhey wants to merge 2 commits intoPAYCOMET:masterfrom
joanhey:query-generator
Open

Fix and clean url query generator#2
joanhey wants to merge 2 commits intoPAYCOMET:masterfrom
joanhey:query-generator

Conversation

@joanhey
Copy link
Copy Markdown

@joanhey joanhey commented Mar 2, 2022

Fix #1

  • Usando http_build_query() que es mucho más rápido que hacerlo manualmente.
  • Sólo se genera 1 vez.
  • El $VHASH no necesita urlencode(). Todos los hash SHA1 y MD5 son alfanuméricos 0-9a-z.

Hemos sustituido 20 líneas por 3 líneas y es 20 veces más rápido.

Tengo muchos más cambios en esta clase y la nueva de composer sin romper compatibilidad, pero no se si estan abiertos a PRs.

@joanhey
Copy link
Copy Markdown
Author

joanhey commented Mar 17, 2022

Muchas gracias por la respuesta, de si aceptan PRs !!!

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

Successfully merging this pull request may close these issues.

1 participant