I am using snipcart on my nextjs project and for order validation I am using JSON response using nextjs api.
My json response is like this.
and use this api response in the (data-item-url) attribute so in the checkout snipcart can go to this route and validate the order id and price.
but in the checkout I am getting this error
I am not sure what I am doing wrong here. If anyone can help that will be super appreciated. Thank you.