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
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())
def get_instance(): return Mollie(testing=use_test_mode())
def get_instance(): return Sofort(testing=use_test_mode())
def get_instance(): return Paypal(testing=use_test_mode())
def get_instance(): return MultiSafepay(testing=use_test_mode())