#.xsanti_

1 messages · Page 1 of 1 (latest)

elfin waveBOT
quiet saffron
#

Can you be more specific

unborn tapir
#

okey, i develpement an eccommerce, and when you pruchase a product, you need the posibility to chosse between two options, in the cheakout appears, but the that info is not in stripe, or i cant find it

#
const session = await stripe.checkout.sessions.create({
      mode: "payment",
      success_url: "http://localhost:3000/",
      line_items: [{ price: req.body.priceId, quantity: 1 }],
      billing_address_collection: "required",
      phone_number_collection: {
        enabled: true,
      },
      custom_fields: [
        {
          key: "type",
          label: {
            type: "custom",
            custom: "Tipo",
          },
          type: "dropdown",
          dropdown: {
            options: [
              { label: "Speed", value: "Speed" },
              { label: "Control", value: "Control" },
            ],
          },
        },
      ],
    });
quiet saffron
unborn tapir
#

there is the posibility to see it in te stripe panel, i meen, if you do the cheakout in striipe shows you information about the person, i need to see the custom field IN STRIPE

quiet saffron
#

You're referring to the dashboard?

unborn tapir
#

yes

quiet saffron
#

Not sure. If you provide a payment id I can look around for you

#

We're not dashboard experts in here

unborn tapir
#

pi_3NvOUFKoLV3DvWnN1051VXAm

unborn tapir
#

the purchase is block but i think it should show...

quiet saffron
#

No it won't

unborn tapir
#

oh xd

quiet saffron
#

If the customer never completed the checkout session, then we won't store the custom fields

unborn tapir
#

ohhhhhh there is a way to do a false purchase?

quiet saffron
#

In test mode yes

#

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

unborn tapir
#

okey, thx