The "commerce_stripe_payment_request_button" plugin did not specify a "offsite-payment" form class

Created on 12 May 2021, over 3 years ago
Updated 31 October 2023, about 1 year ago

Just installed this module on a clean version of Commerce and when I go to pay I am greeted with this error

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

🐛 Bug report
Status

Closed: works as designed

Version

2.21

Component

Code

Created by

🇬🇧United Kingdom danthorne Devon, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France berramou

    Same error with
    Drupal 9.5.5
    Commerce : 2.33
    Commerce Stripe: Payment Request Button 3.5.4

    Anyone find a solution ?

  • 🇧🇬Bulgaria joro78

    I have a similar problem. We have chosen the Commerce Stripe - payment request button as checkout flow, but the error still persist. The Stripe payment is an option on the site to choose from, but we don't see a Stripe button on the checkout pages.

    Environment:

    PHP 7.4.33 (tried on 8.1 also without any success)
    Drupal 9.5.11
    Commerce 8.x-2.33

    I see the successful API requests on the developers dashboard on stripe.com Anyway after completing the order the site shows an error and the drupal log outputs:

    Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "commerce_stripe_payment_request_button" plugin did not specify a "offsite-payment" form class in Drupal\Core\Plugin\PluginFormFactory->createInstance() (line 41 of /var/www/domain.com/public_html/core/lib/Drupal/Core/Plugin/PluginFormFactory.php).

Production build 0.71.5 2024