Module Expr Str ImportFrom alias identifier ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareEq NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr NameLoad Call NameLoad Str decorator_list decorator_list
N/A N/A 
This is a stub and used as the default processor.
It doesn't do anything but it can be used to build out another
interface.

See the authorizenet module for the reference implementation
 django.utils.translation ugettext_lazy _ payment.modules.base BasePaymentProcessor ProcessorResult PaymentProcessor N/A BasePaymentProcessor N/A __init__ N/A N/A self settings N/A N/A N/A N/A N/A N/A super PaymentProcessor self __init__ dummy settings N/A authorize_payment N/A N/A self order testing amount N/A None False None N/A N/A 
        Make an authorization for an order.  This payment will then be captured when the order
        is set marked 'shipped'.
         N/A N/A order None N/A N/A order N/A self order N/A N/A amount None N/A N/A amount N/A order balance N/A cc N/A order credit_card N/A cc N/A N/A ccn N/A cc decryptedCC N/A ccv N/A cc ccv N/A N/A ccn 4222222222222 N/A N/A N/A ccv 222 N/A N/A N/A N/A self log_extra Bad CCV forced N/A payment N/A N/A self record_failure amount amount transaction_id 2 reason_code 2 details CCV error forced N/A N/A ProcessorResult N/A self key False N/A _ Bad CCV - order declined payment N/A N/A N/A N/A self log_extra Setting a bad credit card number to force an error N/A payment N/A N/A self record_failure amount amount transaction_id 2 reason_code 2 details Credit card number error forced N/A N/A ProcessorResult N/A self key False N/A _ Bad credit card number - order declined payment N/A orderauth N/A N/A self record_authorization amount amount reason_code 0 N/A N/A ProcessorResult N/A self key True N/A _ Success orderauth N/A can_authorize N/A N/A self N/A N/A N/A True N/A capture_payment N/A N/A self testing amount N/A False None N/A N/A 
        Process the transaction and return a ProcessorResult:

        Example:
        >>> from livesettings import config_get_group
        >>> settings = config_get_group('PAYMENT_DUMMY')
        >>> from payment.modules.dummy.processor import PaymentProcessor
        >>> processor = PaymentProcessor(settings)
        # If using a normal payment module, data should be an Order object.
        >>> data = {}
        >>> processor.prepare_data(data)
        >>> processor.process()
        ProcessorResult: DUMMY [Success] Success
         N/A orderpayment N/A N/A self record_payment amount amount reason_code 0 N/A N/A ProcessorResult N/A self key True N/A _ Success orderpayment N/A capture_authorized_payment N/A N/A self authorization amount N/A None N/A N/A 
        Given a prior authorization, capture remaining amount not yet captured.
         N/A N/A amount None N/A N/A amount N/A N/A authorization remaining N/A orderpayment N/A N/A self record_payment amount amount reason_code 0 transaction_id dummy authorization authorization N/A N/A ProcessorResult N/A self key True N/A _ Success orderpayment N/A release_authorized_payment N/A N/A self order auth testing N/A None None False N/A N/A Release a previously authorized payment. N/A N/A auth complete True N/A N/A N/A auth save N/A N/A ProcessorResult N/A self key True N/A _ Success N/A N/A