示例#1
0
def get_instance(provider_sub=None):
    if provider_sub == 'creditcard':
        instance = TargetpayCreditcard(testing=use_test_mode())
    elif provider_sub == 'ideal':
        instance = TargetpayIdeal(testing=use_test_mode())
    elif provider_sub == 'mrcash':
        instance = TargetpayMrCash(testing=use_test_mode())
    else:
        raise NotImplementedError(
            'implemented creditcard/ideal/mrcash, not {}'.format(provider_sub))

    return instance
示例#2
0
def get_ideal_instance():
    """
    DEPRECATED! Don't use OSSO_PAYMENT['provider'] because we often
    have multiple providers.
    """
    ideal_module = import_module(settings.OSSO_PAYMENT['provider'] + '.ideal')
    return ideal_module.Ideal(testing=use_test_mode())
示例#3
0
def get_instance():
    return Mollie(testing=use_test_mode())
示例#4
0
def get_instance():
    return Sofort(testing=use_test_mode())
示例#5
0
def get_instance():
    return Paypal(testing=use_test_mode())
示例#6
0
def get_instance():
    return MultiSafepay(testing=use_test_mode())