1

Is it possible to style the fields contained in the Stripe Intents form when using this plugin?

Currently the form seems to load with all the interactions but with minimal styling. I'd like to have the CC form styles identical to other form elements on the page but having a difficult time figuring out how to do so.

Any help would be much appreciated!

This is what the form currently looks like (card holder info are from the twig template and the plugin fields below)

enter image description here

I'm using the latest Craft 3 + Commerce 2.

2
  • I've gotten as far as digging through vendor/craftcms/commerce-stripe/src/web/assets/intentsform/js/paymentForm.js and vendor/craftcms/commerce-stripe/src/templates/paymentForms/intentsForm.html as well as the stripe element documentation on styling the form. The only styling I can do within paymentForm.js seems to be the base styles such as fontSize etc, and all the examples on Stripe Elements Documentation shows styling within a separate CSS file, which is the part I'm completely stumped on. Nov 28 '19 at 1:16
  • This question has been asked before, I have provided an answer on that post. Dec 2 '19 at 17:11