🇬🇧United Kingdom @brenm

Account created on 10 August 2022, over 2 years ago
#

Recent comments

🇬🇧United Kingdom brenm

I've got this exact same issue.

New Drupal 10 install - 10.3.6
Drupal Commerce 2.40
Drupal Commerce Stripe 1.1

I get to the review stage on checkout but the Stripe payment details don't appear.
I click the "Pay and Complete Purchase" button
I get the error

Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "stripe_payment_element" plugin did not specify a "offsite-payment" form class in Drupal\Core\Plugin\PluginFormFactory->createInstance() (line 41 of /app/web/core/lib/Drupal/Core/Plugin/PluginFormFactory.php).

I press the back button and then I refresh the page. The stripe payment form appears.

This is happening in both TEST and LIVE modes. I've double and triple checked my public and private keys. I'm using "Stripe Payment Element"

How do I resolve this? It's driving me nuts!

🇬🇧United Kingdom brenm

I found the solution. On the view itself you need to edit "Query Settings" under "Advanced" on the right hand side.

This is what confused me. I was looking for a global setting, I didn't realise it would need to be enabled for each view, although thinking about it this does make sense

Production build 0.71.5 2024