I'm trying to create a neat little payment form with Stripe. Their latest client-side JS library version only allows you to create credit card number inputs with Elements. I'd like to display their credit card number somewhere else on the screen (in addition to the input the user is filling out) to dynamically fill out a graphic of their credit card. I can't get the credit card number from the Element (the library won't let you), and I debated trying to recreate the card number from a few event listeners, but nothing is working.
With that backstory, is there a way that I could potentially just display the credit card number with Stripe on this credit card graphic? Is there a separate Element for displaying the number? Can I create a duplicate element, mount it on the graphic, and just use something like pointer-events:none
to make it read-only?