def get_pay_link(request, payment_method, order):
    from lfs.core.utils import import_symbol
    logger.info("Decprecated: lfs.payment.utils.get_pay_link: this function is deprecated. Please use Order.get_pay_link instead.")

    if payment_method.module:
        payment_class = import_symbol(payment_method.module)
        payment_instance = payment_class(request=request, order=order)
        try:
            return payment_instance.get_pay_link()
        except AttributeError:
            return ""
    else:
        return ""
Creates a pay link for the passed payment_method and order.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/payment/utils.py/get_pay_link