#tushar003_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hi, let me help you with this.
Is this related to Stripe? It seems to be an issue between your own backend and frontend.
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
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?
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.
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.
For the below documentation ( this is the exact way i am using)
https://docs.stripe.com/checkout/quickstart#add-button
is there any stripe recommended way to send some custom data?
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.