#vincent_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/1215306976347557918
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- vincent_code, 23 hours ago, 28 messages
hello
i really need help for few action on stripe element
Alright what is causing you issues?
i working with nextjs, how is suppose to working for stripe take what client have on basket and give the price to my paymenr element ?
i try to change how client can pay with payment element but i still have all the payment solution
Have you been following a specific doc?
i try follow the doc from stripe
Are you rendering Payment Element on the same page as your basket? Or on a different payment page?
different page
with the doc from strip i juts have the res.send({
clientSecret: paymentIntent.client_secret,
});
Okay gotcha so that PaymentIntent's amount dictates the amount you will charge. So you want to pass the cart details to your server so you create the PaymentIntent with the right amount.
yes is that, i dont see a doc with that for stripe element
Don't see a doc for what? https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements is the basic Payment Element documentation
ok that i have it, so i need send the client basket in the same function from my front have the payment intent ?
You send the details of your basket to the backend at the same time you are going to create the PaymentIntent in your backend, yes.
ok thank you
its me i need to create a element like this or stripe element have something for do that ?
No, Stripe Elements are only for collecting sensitive customer details related to payment, really. You build out any other custom buttons or UIs yourself.
Sure thing
have a good day
You too!