QN
QN2y ago

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
No description
No description
No description
13 Replies
이실장
이실장2y ago
Is error occur in our sdk?
QN
QNOP2y ago
The error reporter says it is happening in your sdk. Here is the code that initiates the request to tosspay:
No description
No description
이실장
이실장2y ago
plz share us the orderId that you used
QN
QNOP2y ago
Ex: orderId: OrderNumber12
이실장
이실장2y ago
Which client key did you use? You can just type in here
QN
QNOP2y ago
we use: test_ck_D5GePWvyJnrK0W0k6q8gLzN97Eoq
이실장
이실장2y ago
could you use more complicate orderId?
QN
QNOP2y ago
What do you mean we need to encrypt them?
이실장
이실장2y ago
use timestamp or something
이실장
이실장2y ago
If it doesnt make it. Plz share us network tab caputure img like below (I wanna see your payload)
No description
QN
QNOP2y ago
We can't get to the step of calling this api. It crashes before calling your api
이실장
이실장2y ago
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
QN
QNOP2y ago
Thanks you, our mistake.

Did you find this page helpful?