See #3027924: Investigate Stripe regression on Commerce 2.12 for the gory details.
Stripe stores the api key as a static parameter of its own class, which isn't kept if the payment form is pulled from form cache, like with ajax calls. With the changes around inline forms coming in Commerce 2.12, this causes the payment to fail on a missing API key.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | commerce_stripe-static_set_api_key-3030159-6.patch | 1.08 KB | smccabe |
Comments
Comment #2
smccabe commentedComment #3
knyshuk.vova commentedFixed coding standards.
Added interdiff.
Comment #4
bojanz commentedWe could call init() from __construct() and __wakeup(), that way we wouldn't need to touch the public methods.
Comment #5
smccabe commentedI'll switch to __wakeup() that is way better, I wasn't aware that was a thing.
Comment #6
smccabe commentedComment #7
bojanz commentedClosed the Commerce issue, created a change record: https://www.drupal.org/node/3031851
Let's proceed with this patch.
Comment #9
bojanz commentedCommitted, thanks!