def sagepayment_tva(payment, config_request): factory = SagePaymentTva(None, config_request) factory.set_payment(payment) return factory