422 (Unprocessable Entity) with paypal checkout

.Hi, I`m having an issue with my next.js and sanity app
I have configured my payment gateway to be paypal.
.im using paypal checkout
when im pressing the checkout with paypal button it throws me 2 errors in the console:

PATCH https://payment.snipcart.com/api/public/sessions/58c43835-ed9c54ab-6fa5-437f-90e1-aa0669b9e6af 422 (Unprocessable Entity)

and

Uncaught TypeError: t.indexOf is not a function

any clues why its happening? i followed al the instructions in the docs.

!thanks in advance guys

anyone?? pls some body help??