Skip to content

Conversation

@vikijel
Copy link

@vikijel vikijel commented Sep 5, 2025

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
Copy link
Author

vikijel commented Sep 5, 2025

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
Copy link
Author

vikijel commented Oct 4, 2025

@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