#Samsara
1 messages · Page 1 of 1 (latest)
Hey there
I think duchess answered me from before, looks like I would pass the client secret back from client right?
Yep you basically just pass the PaymentIntent ID back from the client
Is there a reason you wouldn't want to do this?
No, I was just wondering if that was unsafe or considered bad practice for w/e reason. As far as the client side, if the payment element has already rendered once before with a client secret, would I need to call the fetchUpdates still? The point I would call the update would be before I render the payment element, but it would be with the same client secret
Only need to call fetchUpdates if you already rendered Payment Element and then you update that PI and want to ensure the proper details show
I guess if the payment element is still mounted I'd need to call fetchUpdates right? But if it isn't, then the server updating the client secret should be fine if I remount the payment element?
Ah okay
For instance, if the customer pays with a wallet then the modal won't reflect correctly if you don't call fetchUpdates
thanks bismarck!