#richard-confirm-serverside
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- richard_33032, 6 hours ago, 17 messages
have you tried following this doc? https://stripe.com/docs/payments/finalize-payments-on-the-server
I reviewed the doc, but it did not fully coincide to what i am doing... I am creating the payment intent in .NET and the only thing I am doing on JS is creating the payment form. I was hoping it is possible to submit the payment elements form to stripe then call the confirmpayment in .NET
Yea.. I read that.. I have already created the payment intent.. i guess I might need to change the order in how and when I create the payment intent?
I create the payment intent first then render the from.. The article I read indicates to create the payment intent after rendering the payment form
Is there a reason why you want to submit the payment elements form client-side AND also do the confirmation server-side? I'm not fully understanding why you'd want to do that
So with that sequence, what if the amount changes... is the best practice to create another payment intent and abandon the original one?
The main thing I want to accomplish is to do the confirmation on the server side..
It sounds like i need to change the sequence of when the payment intent is generated?
i do want o submit the form client-side..
If the amount changes and you already have a payment intent created you can always make a server-side call to update the Payment Intent.
But based on what you've described the better thing for you to do would be to not create the Payment Intent up-front, so that you can create + confirm it right at the end
just having issues doing so when the payment intent has already been created.
yea.. that is what I am thinking now.
how do i get the payment intent id to the server.. i guess the example will illustrate that?
If you're following the guide I shared earlier you wouldn't need to send a payment intent ID to you server - you'd just need to send the payment method
ok.. i will look it over some more..