#Dru-client-side-metadata

1 messages · Page 1 of 1 (latest)

floral heath
#

Hey! You can't add metadata to a PI using Stripe.js methods, no

vivid wagon
#

thanks, I suspected as much, but is there anything similar, to add a customers message to a one off payment?

floral heath
#

Not via Stripe.js, no. Can you not control this on creation?

vivid wagon
#

sorry, how do you mean?

floral heath
#

Well generally you'd attach any related metadata when you create the Payment Intent. Are you not able to do that?

vivid wagon
#

the payment intent is created before the customer would get the opportunity to enter their message in the current set up

floral heath
#

Got it. In that case you'd need to update the PI (still via server-side)

vivid wagon
#

ok, I just be doing that to update the amount anyway (I see this up many moons ago) so I should be able to add it to that I guess

floral heath
#

Perfect!

vivid wagon
#

yup, just found where I did that, thanks, will tack it onto that, thanks for that! Just needed fresh eyes on it!

floral heath
#

Np!