#yelseW
1 messages · Page 1 of 1 (latest)
hello! Sorry but I don't quite understand what you're trying to do. Can you share what you're trying to achieve and the problem you're facing?
Essentially I want to be able to update the cart/invoice and add cross sell items, and pay on the same page
This can be achieved with the pricing tables/no code checkout solution, but it doesn't quite fit our needs. We have a client/server checkout integration
The client is on react, and I'm wondering if there's a way to have the PaymentElement (or another element for payment) with a changing (or yet-to-have-received) clientSecret, as a customer adds the cross sell item into the cart, or update the existing cart
The cart logic is something which you have to build yourself. The Payment Element basically only provides a way to collect payment method details based off a final amount
So although it's possible on the no code solution, there isn't any way for us to use PaymentElement without a final amount?
you can also use the Payment Element to collect payment method details to use for future payment
So would I be using the client secret from SetupIntent instead of PaymentIntent?
yep, that's right - https://stripe.com/docs/payments/save-and-reuse