#Nick Ortega

1 messages · Page 1 of 1 (latest)

unkempt nacelleBOT
quaint cradle
humble terrace
#

I have a fetch server side endpoint that makes the the call to update the amount but perhaps I am lacking the update call to update the Payment Element

#

this link is what I need to call AFTER it is updated?

#

would I use elements.update() or elements.fetchUpdates() ? Because it mentions not to use a certain one

quaint cradle
#

this link is what I need to call AFTER it is updated?
Correct. It essentially merges changes made to the PI into the Payment Element

#

Fetch updates is correct

humble terrace
#

Even tho I hardcoded the amount when creating the payment intent obj, I can still change the amount using both the fetch server side endpoint and elements.fetchUpdates? correct?

quaint cradle
#

I would imagine so, since the hard-coding presumably occurs on a server-side function that you wouldn't touch

humble terrace
#

okay i will work on this and ask again if any questions come up. Thank you for your help !

quaint cradle
#

Sure thing!