Japle / Japle/python-pagseguro
Response do PagSeguro.checkout(...) trás tag não esperada pelo parser
- Dominant language
- Python
- Stars
- 173
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Ao fazer uma chamada de checkout utilizando o método [PagSeguro.checkout](https://github.com/Japle/python-pagseguro/blob/master/pagseguro/__init__.py#L217), a tag pai do XML de retorno está divergente do que é esperado pelo parser [PagSeguroCheckoutResponse](https://github.com/Japle/python-pagseguro/blob/08a8aa7f934b16d00948ead17a0e470a88f2479f/pagseguro/parsers.py#L115).
A resposta está trazendo a tag "transaction", mas o parser esperar que seja uma tag "checkout". Parece-me que houve alguma mudança nesse retorno por parte do PagSeguro, mas não consegui confirmar isso.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the checkout call in pagseguro/__init__.py around line 217 and the PagSeguroCheckoutResponse parser in pagseguro/parsers.py around line 115. Verify the current PagSeguro response shape, then ensure a checkout response using the reported parent tag is parsed successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- payments
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100