Unable to submit test contributions via Webform
I am setting up a new Drupal 8/CiviCRM 5.26.1 site with Stripe as the default payment processor. I've created a contribution page and successfully tested it on the CiviCRM side but when I expose it via a webform and choose Pay via Stripe, it fails with a PaymentIntentID missing, as you would expect.
- The credit card pane doesn't appear, although the Billing Name and Address fields do.
- On the console, I get "IntegrationError: Please call Stripe() with your publishable key. You used an empty string." from loadStripBillingBlock.
- Exposing the Payment Processor Mode select doesn't change the outcome.
- If I enter my test key in the live fields, then the error goes away (but I can't submit a payment with the wrong key).
This should be reproducible by clearing the live key and secret from an install and trying the contribution via a webform.
I'm happy to dig into this to create a fix but wanted to see others had encountered the same problem.