#monove
1 messages · Page 1 of 1 (latest)
What do you mean? What are you trying to do exactly?
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
in this example https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=setup#submit-the-setup they do elements.submit();
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?
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
Can you share the request id?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
nm i see its submitting as a string. we're using a 3rd party library that plays with the data
seemingly
Ah yeah that would do it
sorry
No problem