Support Drupal 8 Webform Markup To Process Payments
Overview
We are using Stripe extension with Drupal 8 webform_civicrm for one of our clients and Stripe payments are not working with Drupal 8 webforms.
Before
Stripe payments doesnt work with Drupal 8 webforms.
After
Stripe payments work with Drupal 8 webforms.
Technical Details
There is a JS file used in Stripe called civicrm_stripe.js which is responsible for processing stripe payments in webforms. The HTML form and classes of several elements has changed in Drupal 8. There are 2 in particular
- for selecting the HTML form
- for selecting the form's submit button This PR adds support for also taking Drupal 8 classes into account so that payments work as expected.