#gibigbig_api

1 messages ¡ Page 1 of 1 (latest)

lapis roostBOT
#

👋 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/1245440142492045343

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

signal timber
#

Here is my react form component:

karmic sun
#

Can you explain a bit more about what you're trying to do?

signal timber
#

I want to pass variables like
email: gibigbig@provider.com
project: animesoul
within the form i linked above so I can see these variables in my stripe dashboard

#

ideally add them in a way I can generate a list based on these variables in the stripe dashboard

karmic sun
#

have you looked into using metadata on any of the Stripe objects you interact with? They're just arbitrary key/value pairs that you can use to store information on Stripe objects for later lookup.

Here's the Payment Intent metadata as an example: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-metadata

signal timber
#

so this is what youre suggesting

      amount: amount,
      currency: 'usd',
      metadata: {
        discordid: req.user.id,
        target: target,
        amount: amount,
        project: "Animesoul Premium"
      }
    });```
#

?

#

as inmetadata will accept any amount/type of variables and make it displayed on the stripe dashboard?

karmic sun
#

It can be retreivable in the Stripe Dashboard, but it doesn't have any material effect on the actual behavior of the Payment Intent. It's just there for you to reference either via the Dashboard or API