Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Add safe decode for payer name in payment request URL #15692

Merged
merged 1 commit into from
Oct 15, 2018
Merged

[Fix] Add safe decode for payer name in payment request URL #15692

merged 1 commit into from
Oct 15, 2018

Conversation

chdecultot
Copy link
Contributor

Hi,

Currently, when a customer has an accent in its name, the following method fails with an UnicodeEncodeError:
return get_url("./integrations/braintree_checkout?{0}".format(urlencode(kwargs)))

I have added frappe.safe_decode on the payer name when the URL is created to avoid this error.

Thank you!

@chdecultot chdecultot changed the title Add safe decode for payer name in payment request URL [Fix] Add safe decode for payer name in payment request URL Oct 15, 2018
@nabinhait nabinhait merged commit 615571d into frappe:staging-fixes Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants