#surgical-migrate-to-payment-intent

1 messages · Page 1 of 1 (latest)

stoic jacinth
#

hey there, this is really something that's up to you. Yes, you could update the amount on the payment intent in the back end for each cart update

#

or, when the customer finally submits the payment you could update the payment intent one last time then with the total from your canonical version of the cart

static stratus
#

hey thank you for this! when you say update the payment intent one last time - how can that be achieved if the stripe.confirmCardPayment is code on the front end

stoic jacinth
#

sure, to manage that you'd add a round trip to you server. instead of your "pay" button directly triggering the confirmCardPayment call, you'd do a server request to update the PI first, then trigger the confirmation when it comes back

static stratus
#

got it - thank you!!

stoic jacinth
#

np!