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

Created on 9 August 2024, 8 months ago
Updated 13 August 2024, 8 months ago

Problem/Motivation

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 core/lib/Drupal/Core/Plugin/PluginFormFactory.php).

Steps to reproduce

I have clone review pane and create a custom pane stripePayment where I have use ajax to for single page checkout.
I have set pane in order_information step
Remove review pane form review step
after submit In payment process I am face this error but strip end I have complete payment and response return us success

💬 Support request
Status

Closed: duplicate

Component

Code

Created by

🇮🇳India heni_deepak Jaipur, Rajasthan, India

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

Comments & Activities

  • Issue created by @heni_deepak
  • Assigned to TomTech
  • Status changed to Closed: duplicate 8 months ago
  • 🇺🇸United States TomTech

    Hi @heni_deepak. Thanks for the report.

    The exception reported is already resolved in the latest dev branch. See: 🐛 The "stripe_payment_element" plugin did not specify a "offsite-payment" form class Fixed

    Note that while the exception is handled, it occurs in an edge case when the payment process step is reached, but certain data does not exist on the order.

    The typical case when this happens is when a customer is on the review page, the javascript on the page has not loaded/executed properly, but the form is submitted. (The change prevents submission if the javascript does not load properly, and redirects to the review page if the form is still somehow submitted.)

    Given that you are making your own custom implementation, this is something beyond the scope of a support request.

Production build 0.71.5 2024