Japle / Japle/python-pagseguro
code = None - codigo de checkout inválido
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 173
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
Estou aprendendo django e utilizando essa lib para integrar com o pagseguro.
Estou realizando a integração por meio de uma view PagSeguroView que por meio de um objeto Order, que possuindo um método pagseguro faz as instancias necessárias das configurações do PagSeguro.
Entretanto estou recebendo um código payment.html?code=None o que me parece ser o caso do erro de código de checkout inválido.
O meu código está no github, estou usando django 1.10 e usando python 3.5.2, existe o arquivo requirements.txt com as bibliotecas para rodar caso tenha interesse em testar.
Já coloquei meu token do pagseguro e meu email mas sigo com problemas sobre esse código de checkout.
Modelo Order e seu método pagseguro

View do Pagseguro

Rotas de urls do Da aplicação checkout

Template da View

Resultado de uma tentativa de teste com o sandbox

Caso alguém deseje testar o código por inteiro basta verificar meu repositório: https://github.com/vinipachecov/django-ecommerce
Desde já agradeço a atenção.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported payment.html?code=None result in the linked django-ecommerce repository using requirements.txt and the sandbox setup. Trace the Order.pagseguro method, PagSeguroView, checkout URL routes, and payment.html template to find where the checkout code becomes None. Done means the sandbox checkout produces a valid code instead of None.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend, payments
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100