[fix] encode title and description in payment request (#10240)

This commit is contained in:
Saurabh 2017-08-03 11:47:05 +05:30 committed by Rushabh Mehta
parent f7c1c2c812
commit 33aaebac2b

View File

@ -75,8 +75,8 @@ class PaymentRequest(Document):
return controller.get_payment_url(**{ return controller.get_payment_url(**{
"amount": flt(self.grand_total, self.precision("grand_total")), "amount": flt(self.grand_total, self.precision("grand_total")),
"title": data.company, "title": data.company.encode("utf-8"),
"description": self.subject, "description": self.subject.encode("utf-8"),
"reference_doctype": "Payment Request", "reference_doctype": "Payment Request",
"reference_docname": self.name, "reference_docname": self.name,
"payer_email": self.email_to or frappe.session.user, "payer_email": self.email_to or frappe.session.user,