"Please provide either an Element or PaymentMethod creation parameters to createPaymentMethod" error when changing from `stripe.createToken()` to `stripe.createPaymentMethod()`

Ensure your code syntax is correct, especially that all attributes are capitalized or in lower-case correctly.

Example

Passing card and CardElement will result in this error. The cardElement attribute is incorrectly capitalized. Instead, pass card and cardElement to createPaymentMethod.

Additional Information