Cannot read properties of undefined (reading: startsWith)
How can I fix this error. Everything works fine on local. But in prd it doesn't work, and the error I get shows as below



13 Replies
Is error occur in our sdk?
The error reporter says it is happening in your sdk. Here is the code that initiates the request to tosspay:


plz share us the orderId that you used
Ex: orderId: OrderNumber12
Which client key did you use?
You can just type in here
we use: test_ck_D5GePWvyJnrK0W0k6q8gLzN97Eoq
could you use more complicate orderId?
What do you mean we need to encrypt them?
use timestamp or something
If it doesnt make it.
Plz share us network tab caputure img like below (I wanna see your payload)

We can't get to the step of calling this api. It crashes before calling your api
It isn't a typical situation, but judging by the error message, it seems like there might be a problem with the 'clientKey' part. Even if I hard-code and set the 'clientKey' variable, would there still be an issue
Thanks you, our mistake.