#Baran Buket Yıldız
1 messages · Page 1 of 1 (latest)
Can you share the request id where you're seeing the error?
Oh you're attempting to pass a json object in the url. That's not valid
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
See your request body
Actually that should be fine
But you should encode the object to all ascii characters
Looks like some of the characters aren't valid
but it was working like this before
But maybe because before you passed all ascii characters
Can you share an example of a request that worked?
Just make sure you encode the object to ascii in your code prior to passing it
evt_3N6LLeKwbUiWvnK41dkcpaIl
That doesn't contain any url
that's a charge.succeeded event
Give me a minute to track down its checkout session
Ok i see
Yeah I suspect it has to do with some of the characters in the original example you shared
They don't all appear to be ascii
You'll need to encode the url prior to passing it
"success_url" : "http://localhost:3000/success?session_id=cs_test_b1cAzblZSo3Zf7RdcOBSp7pGOE00WlDjmMKXMordP0rZ75X5jRPCUV2LQD&order={"items":[{"item":1,"title":"aasd", " fiyat":2555,"resim":"https://494healthylife494.s3.eu-north-1.amazonaws.com/1683701454100.jpeg\"},{\"item\":1,\" title":"zvcvxz","price":244,"image":"img/noImage.png","sirketAdı":"ngjf"}]," adres":{"adres":"czxcxz","sokak":"xzczxc","şehir":"cxzczxc","durum":"czxczx ","pin kodu":"cxzc","yer işareti":"cxzcxzc","lat":39.92077,"lng":32.85411},"email":"healsdsthylife494@gmail.com"}"
Is this what you want from me?
I don't need anything else. Read my above response
You need to be encoding the success url before you pass it
In the example that succeeded, there were all ascii characters
In the one that failed there weren't
To be safe in your code, you need to encode the url properly
i don't understand how to fix it
The issue is you're passing some characters that stripe doesn't expect in some cases. So, you'll need to encode the url to all ascii characters
You can google how to do that
sorry for late response, your guess was right this link solved my issue thank you very much