#vincent_code

1 messages ¡ Page 1 of 1 (latest)

clever nexusBOT
#

👋 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.

polar lagoonBOT
#

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.

celest grove
#

hello

polar lagoonBOT
low pine
#

Hello

#

How can I help?

celest grove
#

i really need help for few action on stripe element

low pine
#

Alright what is causing you issues?

celest grove
#

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

low pine
#

Have you been following a specific doc?

celest grove
#

i try follow the doc from stripe

low pine
#

Are you rendering Payment Element on the same page as your basket? Or on a different payment page?

celest grove
#

different page

#

with the doc from strip i juts have the res.send({
clientSecret: paymentIntent.client_secret,
});

low pine
#

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.

celest grove
#

yes is that, i dont see a doc with that for stripe element

low pine
celest grove
#

ok that i have it, so i need send the client basket in the same function from my front have the payment intent ?

low pine
#

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.

celest grove
#

ok thank you

#

its me i need to create a element like this or stripe element have something for do that ?

low pine
#

No, Stripe Elements are only for collecting sensitive customer details related to payment, really. You build out any other custom buttons or UIs yourself.

celest grove
#

ok i understand

#

thank you for answer me about all

low pine
#

Sure thing

celest grove
#

have a good day

low pine
#

You too!