Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
Extend README docs
Browse files Browse the repository at this point in the history
  • Loading branch information
codeinthehole committed Jul 31, 2013
1 parent b3fa862 commit 4cdf8c2
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ correctly.
Integration with The3rdMan
--------------------------

Using batch fraud services requires submitting a dict of relevant data as part
Using realtime fraud services requires submitting a dict of relevant data as part
of the initial transaction. A helper method is provided that will extract all
it needs from Oscar's models:

Expand All @@ -191,6 +191,27 @@ then pass this data as a named argument when creating the transaction:
ref = Facade().pre_authorise(..., the3rdman_data=fraud_data)
To receive the callback, include the following in your ``urls.py``:

.. code:: python
urlpatterns = patterns('',
...
(r'^datacash/', include('datacash.urls')),
...
)
When a fraud response is received, a custom signal is raised which your client
code should listen for. Example:

.. code:: python
from django.dispatch import receiver
from datacash.the3rdman import signals
@receiver(signals.response_received)
def handle_fraud_response(sender, response, **kwargs):
# Do something with response
Packages structure
==================
Expand Down

0 comments on commit 4cdf8c2

Please sign in to comment.