#s123317_setupintent-metadata

1 messages ¡ Page 1 of 1 (latest)

gleaming thunderBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1446176449534103685

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

keen parcel
#

s123317_setupintent-metadata

#

@silent sonnet I was about to say no but let me triple check something

silent sonnet
#

Thank you

#

I noticed inside workbench there is a metadata area (for exemple : pm_1SaGOYIpbbIMMVWQoflQBmS9) but it's empty

keen parcel
#

wow it works I had no idea it did

#

So first: can you confirm how you are integrating exactly?

silent sonnet
#

I can't see anything inside

#

i just see there is the metadata area but i don't know how to populate it

#

from the setup intent ? or something else to add?

#

I think i found out but not sure, it seems I have to update the paymentmethod like this :
curl https://api.stripe.com/v1/payment_methods/pm_123
-u sk_test_xxx:
-d "metadata[PersonID]"="496-1-2088"
-d "metadata[WTP]"="496-1-525"
-d "metadata[Product]"="NoSouci"

#

after i receive setup_intent.succeeded

keen parcel
#

Yes that works
But you can do it client side too potentially depending on how you are integrating. There are 20+ ways to integrate our APIs

silent sonnet
#

If we add to the setup intent, do you think it's copying to the paymentmethod?

#

We could avoid an api call

keen parcel
#

no it doesn't copy

silent sonnet
#

so the best is to update with api then

keen parcel
#

yes