Hey Mahmood, I have found out two errors, one that is Thawani API doesn't accept product names with dashes for example (كريم-شعر) it will send back error 4000, but it is okay we can remove the dashes and I guess the solution could be that you replace every dash in the string to normal space.
I tried to add str_replace but it didn't work out for me!
another issue is I have lowered the accepted strings to 25 chars only and that work out for most products, but what I didn't understand is why this product name exactly doesn't accept (شامبو وبلسم من كانتو بنكهة الشيا) that's so wired hahaha.
Thank you again!
Hey Mahmood, I have found out two errors, one that is Thawani API doesn't accept product names with dashes for example (كريم-شعر) it will send back error 4000, but it is okay we can remove the dashes and I guess the solution could be that you replace every dash in the string to normal space.
I tried to add str_replace but it didn't work out for me!
another issue is I have lowered the accepted strings to 25 chars only and that work out for most products, but what I didn't understand is why this product name exactly doesn't accept (شامبو وبلسم من كانتو بنكهة الشيا) that's so wired hahaha.
Thank you again!