Exemplo de projeto usando o django-pagseguro2
allisson, updated
🕥
2022-12-08 09:31:12
=========================
django-pagseguro2-example
=========================
|Github Build Status|
Exemplo de projeto usando o django-pagseguro2.
Dependências para rodar o projeto
- Python 3.8+
- Pipenv
Ngrok
_ (para receber as notificações do PagSeguro)
.. _Ngrok
: https://ngrok.com/
Como rodar o projeto
.. code:: shell
pipenv install --dev
cp local.env .env
vim .env # edite as informações usando seus dados de sandbox do PagSeguro
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000
Abra o navegador no endereço http://localhost:8000/admin/ para fazer login no sistema e criar os eventos e tickets.
Acesse o endereço http://localhost:8000/eventos/ para navegar pelos eventos e comprar os tickets.
Como receber notificações do PagSeguro
.. code:: shell
ngrok http 8000
Anote o endereço do ngrok e atualize no sandbox do PagSeguro
_. Ex: https://14742c67.ngrok.io/pagseguro/ (observe o '/' no final da url).
No sandbox, altere uma transação para o status pago e a notificação será enviada para o sistema.
.. _sandbox do PagSeguro
: https://sandbox.pagseguro.uol.com.br/vendedor/configuracoes.html
Como rodar os testes
.. code:: shell
pytest
Observações
- Todos os endereços /eventos/* são protegidos por login e senha, lembre-se de logar no admin antes de acessar.
- Apenas os status pago e cancelado que vem do PagSeguro foram mapeados nesse projeto.
.. |Github Build Status| image:: https://github.com/allisson/django-pagseguro2-example/workflows/tests/badge.svg
:target: https://github.com/allisson/django-pagseguro2-example/actions
Issues
opened on 2022-12-08 09:31:10 by dependabot[bot]
Bumps certifi from 2020.4.5.1 to 2022.12.7.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).
opened on 2022-01-21 19:01:50 by dependabot[bot]
Bumps ipython from 7.13.0 to 7.16.3.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).
opened on 2021-09-22 17:40:11 by dependabot[bot]
Bumps django from 3.0.7 to 3.1.13.
Commits
43873b9
[3.1.x] Bumped version for 3.1.13 release.
0bd57a8
[3.1.x] Fixed CVE-2021-35042 -- Prevented SQL injection in QuerySet.order_by().
8dc1cc0
[3.1.x] Added stub release notes for 3.1.13.
1471ec4
[3.1.x] Fixed docs header underlines in security archive.
6022181
[3.1.x] Added CVE-2021-33203 and CVE-2021-33571 to security archive.
064c0c5
[3.1.x] Post-release version bump.
625d3c1
[3.1.x] Bumped version for 3.1.12 release.
203d4ab
[3.1.x] Fixed CVE-2021-33571 -- Prevented leading zeros in IPv4 addresses.
20c67a0
[3.1.x] Fixed CVE-2021-33203 -- Fixed potential path-traversal via admindocs'...
aa8781c
[3.1.x] Confirmed release date for Django 3.1.12, and 2.2.24.
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).
opened on 2021-06-01 21:36:56 by dependabot[bot]
Bumps urllib3 from 1.25.9 to 1.26.5.
Release notes
Sourced from urllib3's releases.
1.26.5
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
- Fixed deprecation warnings emitted in Python 3.10.
- Updated vendored
six
library to 1.16.0.
- Improved performance of URL parser when splitting the authority component.
If you or your organization rely on urllib3 consider supporting us via GitHub Sponsors
1.26.4
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
- Changed behavior of the default
SSLContext
when connecting to HTTPS proxy during HTTPS requests. The default SSLContext
now sets check_hostname=True
.
If you or your organization rely on urllib3 consider supporting us via GitHub Sponsors
1.26.3
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
If you or your organization rely on urllib3 consider supporting us via GitHub Sponsors
1.26.2
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
- Fixed an issue where
wrap_socket
and CERT_REQUIRED
wouldn't be imported properly on Python 2.7.8 and earlier (Pull #2052)
1.26.1
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
- Fixed an issue where two
User-Agent
headers would be sent if a User-Agent
header key is passed as bytes
(Pull #2047)
1.26.0
:warning: IMPORTANT: urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
-
Added support for HTTPS proxies contacting HTTPS servers (Pull #1923, Pull #1806)
-
Deprecated negotiating TLSv1 and TLSv1.1 by default. Users that
still wish to use TLS earlier than 1.2 without a deprecation warning
should opt-in explicitly by setting ssl_version=ssl.PROTOCOL_TLSv1_1
(Pull #2002)
Starting in urllib3 v2.0: Connections that receive a DeprecationWarning
will fail
-
Deprecated Retry
options Retry.DEFAULT_METHOD_WHITELIST
, Retry.DEFAULT_REDIRECT_HEADERS_BLACKLIST
and Retry(method_whitelist=...)
in favor of Retry.DEFAULT_ALLOWED_METHODS
,
Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT
, and Retry(allowed_methods=...)
(Pull #2000) Starting in urllib3 v2.0: Deprecated options will be removed
... (truncated)
Changelog
Sourced from urllib3's changelog.
1.26.5 (2021-05-26)
- Fixed deprecation warnings emitted in Python 3.10.
- Updated vendored
six
library to 1.16.0.
- Improved performance of URL parser when splitting
the authority component.
1.26.4 (2021-03-15)
- Changed behavior of the default
SSLContext
when connecting to HTTPS proxy
during HTTPS requests. The default SSLContext
now sets check_hostname=True
.
1.26.3 (2021-01-26)
1.26.2 (2020-11-12)
- Fixed an issue where
wrap_socket
and CERT_REQUIRED
wouldn't
be imported properly on Python 2.7.8 and earlier (Pull #2052)
1.26.1 (2020-11-11)
- Fixed an issue where two
User-Agent
headers would be sent if a
User-Agent
header key is passed as bytes
(Pull #2047)
1.26.0 (2020-11-10)
-
NOTE: urllib3 v2.0 will drop support for Python 2.
Read more in the v2.0 Roadmap <https://urllib3.readthedocs.io/en/latest/v2-roadmap.html>
_.
-
Added support for HTTPS proxies contacting HTTPS servers (Pull #1923, Pull #1806)
-
Deprecated negotiating TLSv1 and TLSv1.1 by default. Users that
still wish to use TLS earlier than 1.2 without a deprecation warning
... (truncated)
Commits
d161647
Release 1.26.5
2d4a3fe
Improve performance of sub-authority splitting in URL
2698537
Update vendored six to 1.16.0
07bed79
Fix deprecation warnings for Python 3.10 ssl module
d725a9b
Add Python 3.10 to GitHub Actions
339ad34
Use pytest==6.2.4 on Python 3.10+
f271c9c
Apply latest Black formatting
1884878
[1.26] Properly proxy EOF on the SSLTransport test suite
a891304
Release 1.26.4
8d65ea1
Merge pull request from GHSA-5phf-pp7p-vc2r
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).
opened on 2021-04-20 17:09:06 by dependabot[bot]
Bumps py from 1.8.1 to 1.10.0.
Changelog
Sourced from py's changelog.
1.10.0 (2020-12-12)
- Fix a regular expression DoS vulnerability in the py.path.svnwc SVN blame functionality (CVE-2020-29651)
- Update vendored apipkg: 1.4 => 1.5
- Update vendored iniconfig: 1.0.0 => 1.1.1
1.9.0 (2020-06-24)
-
Add type annotation stubs for the following modules:
py.error
py.iniconfig
py.path
(not including SVN paths)
py.io
py.xml
There are no plans to type other modules at this time.
The type annotations are provided in external .pyi files, not inline in the
code, and may therefore contain small errors or omissions. If you use py
in conjunction with a type checker, and encounter any type errors you believe
should be accepted, please report it in an issue.
1.8.2 (2020-06-15)
- On Windows,
py.path.local
s which differ only in case now have the same
Python hash value. Previously, such paths were considered equal but had
different hashes, which is not allowed and breaks the assumptions made by
dicts, sets and other users of hashes.
Commits
e5ff378
Update CHANGELOG for 1.10.0
94cf44f
Update vendored libs
5e8ded5
testing: comment out an assert which fails on Python 3.9 for now
afdffcc
Rename HOWTORELEASE.rst to RELEASING.rst
2de53a6
Merge pull request #266 from nicoddemus/gh-actions
fa1b32e
Merge pull request #264 from hugovk/patch-2
887d6b8
Skip test_samefile_symlink on pypy3 on Windows
e94e670
Fix test_comments() in test_source
fef9a32
Adapt test
4a694b0
Add GitHub Actions badge to README
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).
opened on 2021-03-29 16:49:37 by dependabot[bot]
Bumps pygments from 2.6.1 to 2.7.4.
Release notes
Sourced from pygments's releases.
2.7.4
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
2.7.3
-
Updated lexers:
-
Deprecated JsonBareObjectLexer, which is now identical to JsonLexer (#1600)
-
The ImgFormatter
now calculates the exact character width, which fixes some issues with overlapping text (#1213, #1611)
... (truncated)
Changelog
Sourced from pygments's changelog.
Version 2.7.4
(released January 12, 2021)
-
Updated lexers:
-
Apache configurations: Improve handling of malformed tags (#1656)
-
CSS: Add support for variables (#1633, #1666)
-
Crystal (#1650, #1670)
-
Coq (#1648)
-
Fortran: Add missing keywords (#1635, #1665)
-
Ini (#1624)
-
JavaScript and variants (#1647 -- missing regex flags, #1651)
-
Markdown (#1623, #1617)
-
Shell
- Lex trailing whitespace as part of the prompt (#1645)
- Add missing
in
keyword (#1652)
-
SQL - Fix keywords (#1668)
-
Typescript: Fix incorrect punctuation handling (#1510, #1511)
-
Fix infinite loop in SML lexer (#1625)
-
Fix backtracking string regexes in JavaScript/TypeScript, Modula2
and many other lexers (#1637)
-
Limit recursion with nesting Ruby heredocs (#1638)
-
Fix a few inefficient regexes for guessing lexers
-
Fix the raw token lexer handling of Unicode (#1616)
-
Revert a private API change in the HTML formatter (#1655) --
please note that private APIs remain subject to change!
-
Fix several exponential/cubic-complexity regexes found by
Ben Caller/Doyensec (#1675)
-
Fix incorrect MATLAB example (#1582)
Thanks to Google's OSS-Fuzz project for finding many of these bugs.
Version 2.7.3
(released December 6, 2020)
... (truncated)
Commits
4d555d0
Bump version to 2.7.4.
fc3b05d
Update CHANGES.
ad21935
Revert "Added dracula theme style (#1636)"
e411506
Prepare for 2.7.4 release.
275e34d
doc: remove Perl 6 ref
2e7e8c4
Fix several exponential/cubic complexity regexes found by Ben Caller/Doyensec
eb39c43
xquery: fix pop from empty stack
2738778
fix coding style in test_analyzer_lexer
02e0f09
Added 'ERROR STOP' to fortran.py keywords. (#1665)
c83fe48
support added for css variables (#1633)
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/allisson/django-pagseguro2-example/network/alerts).