#bootsy-paymentelement-name

1 messages · Page 1 of 1 (latest)

cyan heronBOT
frail grail
#

bootsy-paymentelement-name

exotic fossil
#

i'm calling this.stripe.confirmSetup

#

how do i pass in the name with confirmSetup?

frail grail
exotic fossil
#

it doesn't look the same to me

frail grail
#

I'm sorry those are just two pictures with no details? Those are 2 completely separate methods, one is confirmSetup() and the other is confirmCardSetup()

exotic fossil
#

Yes. I'm using confirmSetup(), but i don't see anywhere in the docs to pass in a name

frail grail
#

but I just linked you to the exact parameter, twice

#

We don't show an exact code example for your use-case (there are dozens of parameters, that wouldn't make sense) but we list every parameters and that link I gave you shows the exact path

exotic fossil
#

ok, thanks

#

i think i see it

frail grail
#
            elements: elements,
            confirmParams: {
              return_url: 'https://example.com',
              payment_method_data: {
                billing_details: {
                  address: {
                    city: 'city',
                    line1: 'line1',
                    line2: 'line2',
                    postal_code: '90210',
                    country: 'FR'
                  },
                  email: 'myemail@example.com',
                  name: 'my name',
                }
              },
            },
          });```
#

here's a full example

#

but you only want name and not the rest if I understood your ask correctly