Skip to content

Fix: Add JSON_UNESCAPED_UNICODE flag when encoding requests#71

Open
vikijel wants to merge 1 commit into
gopaycommunity:masterfrom
vikijel:json-unescaped-unicode
Open

Fix: Add JSON_UNESCAPED_UNICODE flag when encoding requests#71
vikijel wants to merge 1 commit into
gopaycommunity:masterfrom
vikijel:json-unescaped-unicode

Conversation

@vikijel

@vikijel vikijel commented Sep 5, 2025

Copy link
Copy Markdown

Fixes #69

Prevents 403 api response due to escaped unicode chars inside the request json - by not escaping them (by adding JSON_UNESCAPED_UNICODE flag to json_encode)

Test adjusted for CZ diacritics and some special characters (we had issue with simple brackets in product names)

@vikijel

vikijel commented Sep 5, 2025

Copy link
Copy Markdown
Author

PS: Payment ID created by me running the test = 3284249384

@vikijel vikijel changed the title JSON_UNESCAPED_UNICODE Fix: Add JSON_UNESCAPED_UNICODE flag when encoding requests (to prevent 403 - api firewall false alarm) Sep 9, 2025
@vikijel vikijel changed the title Fix: Add JSON_UNESCAPED_UNICODE flag when encoding requests (to prevent 403 - api firewall false alarm) Fix: Add JSON_UNESCAPED_UNICODE flag when encoding requests Sep 9, 2025
@vikijel

vikijel commented Oct 4, 2025

Copy link
Copy Markdown
Author

@gopayprovoz Please ping the current php-sdk maintainer to check this PR, thank you.

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.

Escape characters

1 participant