Please help! How do I get the payment method id from a Stripe Card Element?

How do I get the payment method id from a Stripe Card Element?

I have the card element on my page. I can make payment intents go through just fine. I just need to return the newly created payment method id so I can attach it to my customer.

Community Page
Last updated: