Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0f4f10acc3
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (33 sloc) 1.21 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.

Jump to Line
Something went wrong with that request. Please try again.