Hi there,
Thanks for this suggestion.
Unfortunately it won't be possible to pass the credit card details to Stripe via the API; this means that the Stripe-hosted Elements forms cannot be used. Sending the card details via the API mean they touch your server , requiring a different Stripe API with increased PCI compliance requirements.

Clients must use the payment forms in the UI to pass the details via the Stripe Element fields.