#monove

1 messages · Page 1 of 1 (latest)

prime laurelBOT
tame hazel
#

What do you mean? What are you trying to do exactly?

static steppe
#

using the deprecated cardlement, we were able to call stripe.createToken

#

we're trying to migrate from Card Element to Payment Element

#

there's currently no HTML form just a placeholder which Stripe mounts and a button which calls stripe.createToken

tame hazel
#

I'm confused. You said you're migrating to the payment element but there's no form? How is there no form with the payment element?

static steppe
#

there's no <form> tag with a <button type="submit"> button, its simply an html <button click="stripe.createToken(card)">

#

ive got it working with elements.submit()

#

but server-side the following code is returning an error:

      [
        'customer' => $customer->id,
        'automatic_payment_methods' => ['enabled' => true],
      ]
    );```
Invalid boolean: 1
tame hazel
#

Can you share the request id?

static steppe
prime laurelBOT
static steppe
#

nm i see its submitting as a string. we're using a 3rd party library that plays with the data

#

seemingly

tame hazel
#

Ah yeah that would do it

static steppe
#

sorry

tame hazel
#

No problem