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