Skip to content

Commit

Permalink
Merge pull request frappe#43862 from ruthra-kumar/fix_garbage_descrip…
Browse files Browse the repository at this point in the history
…tion_in_razorpay

refactor: fix garbage title, desc and name in razorpay
  • Loading branch information
ruthra-kumar authored Oct 28, 2024
2 parents 7e45d15 + 7332ec8 commit c74bc51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/accounts/doctype/payment_request/payment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,12 @@ def get_payment_url(self):
return controller.get_payment_url(
**{
"amount": flt(self.grand_total, self.precision("grand_total")),
"title": data.company.encode("utf-8"),
"description": self.subject.encode("utf-8"),
"title": data.company,
"description": self.subject,
"reference_doctype": "Payment Request",
"reference_docname": self.name,
"payer_email": self.email_to or frappe.session.user,
"payer_name": frappe.safe_encode(data.customer_name),
"payer_name": data.customer_name,
"order_id": self.name,
"currency": self.currency,
}
Expand Down

0 comments on commit c74bc51

Please sign in to comment.