Skip to content

default gateway can not be changed #1

@gavinwahl

Description

@gavinwahl

If you configure dinero like this:

dinero.configure({
    'default': {
        'type': 'dinero.gateways.AuthorizeNet',
        # ...
    }
    })

and then switch gateways:

dinero.configure({
    'default': {
        'type': 'dinero.gateways.Braintree',
        # ...
    }
    })

Oops, now all of your existing transactions won't work any more.

What if instead of using the name of the gateway to determine the default, it was something like:

dinero.configure({
    'braintree': {
        'type': 'dinero.gateways.Braintree',
        'default': True,
        # ...
    }, 
    'authorize.net': {
        'type': 'dinero.gateways.AuthorizeNet',
        # ...
    }
    })

Then the default could be safely changed without invalidating all existing transactions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions