Skip to main content
==================================
Pagseguro package for django-oscar
==================================

This package provides integration between django-oscar_ and Pagseguro_

.. _django-oscar: https://github.com/tangentlabs/django-oscar
.. _Pagseguro: http://pagseguro.com.br/

It's only on early development

It depends on django_pagseguro2_ library

.. _django_pagseguro2: https://github.com/allisson/django-pagseguro2/

It works by adding the Pagseguro_ API call to the handle_successful_order
method, so it finalizes the order before redirecting the user to Pagseguro_
because it needs to use the order number as reference for the order.

Pagseguro_ assumes that the order is completed when it's called, which is
different from django-oscar, where it's possible to use the success of the
payment as a confirmation for order placement.

The payment status are sent afterwards and dealt with using a view provided by
django_pagseguro2_ library, the signals are then used for order status changing
in signals.py

Usage
-----

- Add the pagseguro package to the INSTALLED_APPS::

INSTALLED_APPS = [
...
pagseguro,
]

- Add the following url to the urls.py of the django-oscar project::

url(r'^', include('oscar_pagseguro.urls')),

- And have a oscar order status pipeline that matches Pagseguro one::


OSCAR_ORDER_STATUS_PIPELINE = {
'Aguardando pagamento': ('Paga', u'Em analíse', 'Cancelada'),
u'Em analíse': ('Paga', 'Cancelada'),
'Paga': ('Em disputa', 'Devolvida', u'Disponível', 'Cancelada'),
u'Disponível': ('Devolvida', 'Em disputa'),
'Em disputa': (u'Disponível', 'Devolvida', 'Paga'),
'Devolvida': (),
'Cancelada': (),
}

- Configure Pagseguro with fix redirection page (Página de redirecionamento
fixa) para:

/checkout/thank-you/

- Configure Pagseguro with transaction notification (Notificação de transação),
to the following URL:

/retorno/pagseguro/

TODO
----

Drop the status pipeline matching by making the status used by the
django_pagseguro2_ configurable

Metadata

Release files for django-oscar-pagseguro 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-oscar-pagseguro 0.0.4
File Size Uploaded Provenance Actions
django-oscar-pagseguro-0.0.4.tar.gz 4.3 kB Without provenance Details for django-oscar-pagseguro-0.0.4.tar.gz

Release files / django-oscar-pagseguro-0.0.4.tar.gz

Download URL django-oscar-pagseguro-0.0.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89bc641f6a85be9faf93f4ea3fc646ccdef091fdd7a863b443d4608da3aae75b
BLAKE2b-256 checksum
How to use checksums
dbe134e868765dd3341e0b58613b8d4b1294c6e4a7e5f17762d95a3206f7f196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-oscar-pagseguro 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page