Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.18 KB

signals.rst

File metadata and controls

42 lines (33 loc) · 1.18 KB

Signals

The signals emitted by Merchant are:

  • `transaction_was_successful(sender, type=..., response=...): This signal is dispatched when a payment is successfully transacted. The `sender is the object which has dispatched the signal. type is the kind of transaction. Current choices for type are:

    • purchase
    • authorize
    • capture
    • credit
    • void
    • store
    • unstore

    response is the actual response object that is sent after the success. Please consult the individual gateway docs for the response object.

  • `transaction_was_unsuccessful(sender, type=..., response=...): This signal is dispatched when a payment fails. The `sender is the object which has dispatched the signal. type is the kind of transation. Current choices for type are:

    • purchase
    • authorize
    • capture
    • credit
    • void
    • store
    • unstore

    response is the actual response object that is sent after the success.

    Note

    Some gateways are implemented to raise an error on failure. This exception may be passed as the response object. Please consult the docs to confirm.