Fix bug with JS code
#3114795: Ajax-based interactions on microcontent forms make fields unable to work as expected
Based on @bojanz's code, this allows stores to configure their own payment gateways. Currently updating the code to Drupal 8.8.x and 9.