#ubi-elements-amountchange
1 messages · Page 1 of 1 (latest)
Hey @copper mountain what do you call "re-rendering"?
That is the UI, the problem is that when I enter the Address, I hit the backend to recalculate the amount, therefore, the amount changes and cause some issues
the part on the right is not Elements, it's your own UI/code right?
Right, custom stuff around it
Are you updating the underlying PaymentIntent on the back end?
Nope, I am using confirm: true so not intent in the backend
I am just purely collecting the payment method at this point to confirm in the backend
what does "I am using confirm: true" mean?
that's not a term I've ever heard. Which doc are you following?
Stripe.PaymentIntent.create(%{
confirm: true,
error_on_requires_action: true,
amount: tax_calculation.amount_total,
# ...
})
Like when you pass confirm: true to the payment intent create API
Sorry, I replied to this, like I am not changing the payment intent
payment intent isn't relevant to my existing code is what I tried to say... sorry
No problem! We have like 7 ways to integrate that one element and we each use a different vocabulary for it so that's not easy
can you share the code where you initialize that UI for the card details?
ubi-elements-amountchange
How mess, I am activtely moving things around
yeah I won't read hundreds of lines! Please just shre the 5 or 10 lines of code around this

