As of version 2.3.13 (release coming soon) the Stripe Payments Plugin supports easier custom coding options. This makes it possible for your customizations to persist across plugin and theme updates. Here is how you should do it:
The plugin has a default theme and layout that works for most sites. The HTML for the form provides a number of classes that can be used to customize the theme. To do this navigate to the plugin’s admin page and enter the custom CSS in the appropriate area on the Setup tab. Here is a screenshot:
The plugin provides a number of hooks to allow you to customize the payment experience. Sometimes this requires writing custom PHP functions. Previously these needed to be added to the theme’s functions.php file. This was an issue because updating the theme would cause these customizations to be lost. Now you can include a
diglabs-stripe-payments-custom.php file in the WordPress plugin’s folder. Here is a screenshot:
This files are created when the Setup tab is saved. After a plugin update, if for some reason the files are not present, click the ‘Save’ button on the Setup tab to force the information to be re-written to the directory.