#tushar003_code

1 messages ¡ Page 1 of 1 (latest)

humble knollBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1280869232485335050

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lyric raft
#

Hi, let me help you with this.

#

Is this related to Stripe? It seems to be an issue between your own backend and frontend.

icy bolt
#

no this is related to stripe, coz stripe hosted pages expects us to use traditional forms and with traditional forms the data type is not application/json.
So wanted to ask is there any other way recommended by stripe to send the data from frontend in json format?
and i cannot move away from stripe hosted pages

lyric raft
#

I don't really understand what you're trying to do. This seems to be a piece of your own frontend code. How is it related to Stripe-hosted surfaces?
Where are you sending the data exactly?

icy bolt
#

https://docs.stripe.com/checkout/quickstart
i am following this.
The action in the form goes to my backend from where i redirect to stripe's payment page and in the backend logic i need to send some user data to construct the success_url parameter.
But i cannot find any way in stripe's docs to send my user's data to backend because if i use my custom post request,then stripe page is not shown.

lyric raft
#

then stripe page is not shown.
Why is it not shown?

#

It sounds like there's an error in your own code that you need to solve, and not something related to Stripe. I recommend you to find a reason why the Stripe Checkout page is not shown exactly, e.g. what exact error happens on your backend. This will give you a better idea of how to fix it.

icy bolt
humble knollBOT
lyric raft
#

This is just an example of how you can build an app with Stripe Checkout.
This exact part is not relevant to Stripe and you can send data between your own frontend and your backend in any way you prefer/your technology allows.

#

The frontend code you shared initially is fine. You should investigate why your backend runs into problems. You probably need to handle the incoming data correctly.