'return message with payment gateway link'

def get_message(self):

    context = {u'doc': frappe.get_doc(self.reference_doctype, self.reference_name), u'payment_url': self.payment_url}
    if self.message:
        return frappe.render_template(self.message, context)
