Stripe element not loaded on additional payment form in a popup when stripe is the default processor
- Turn on popups at admin - customize - display prefs.
- Make stripe the default processor.
- Make a pending contribution (it doesn't have to be pending it just makes it more realistic). Can do this in the backend it doesn't matter.
- From the contribution tab on the contact or from the contribution dashboard or find contributions, click on view to open the contribution in a popup.
- Click on submit credit card payment.
- The stripe widget doesn't load.
It appears to be because nothing is triggering a call to civicrm/payment/form. If I manually run CRM.$('#payment_processor_id').change()
in the console, or switch the dropdown to another pp and then switch it back it works. It also works when popups are turned off, or if I open in a new tab.
This happens as far back as civi 5.65, and at least back to stripe 6.10. And in a stock (drupal 7) install with civi master and the latest stripe et al.
I'm not clear on why it's only a problem with popups since it's the same form (civicrm/payment - the AdditionalPayment form).