Exception where editing payment gateway Paypal Subscription (Express Checkout) on Sandbox

Created on 27 March 2022, about 3 years ago
Updated 23 April 2023, about 2 years ago

Problem/Motivation

I am trying to setup Paypal subscriptions for doing payments of recurring invoices. I am able to add and activate the gateway but I cant edit it afterwords. I get this exception:
Error: Call to a member function moduleExists() on null en Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway\ExpressCheckout->buildConfigurationForm() (lΓ­nea 164 de C:\wamp64\www\atrevetepy\modules\commerce_paypal\src\Plugin\Commerce\PaymentGateway\ExpressCheckout.php)
#0 C:\wamp64\www\atrevetepy\modules\paypal_subscriptions\src\Plugin\Commerce\PaymentGateway\ExpressCheckoutSubscriptions.php(121): Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway\ExpressCheckout->buildConfigurationForm(Array, Object(Drupal\Core\Form\FormState))
#1 C:\wamp64\www\atrevetepy\modules\contrib\commerce\src\Plugin\Commerce\InlineForm\PluginConfiguration.php(104): Drupal\paypal_subscriptions\Plugin\Commerce\PaymentGateway\ExpressCheckoutSubscriptions->buildConfigurationForm(Array, Object(Drupal\Core\Form\FormState))
#2 C:\wamp64\www\atrevetepy\modules\contrib\commerce\modules\payment\src\Form\PaymentGatewayForm.php(129): Drupal\commerce\Plugin\Commerce\InlineForm\PluginConfiguration->buildInlineForm(Array, Object(Drupal\Core\Form\FormState))
#3 C:\wamp64\www\atrevetepy\core\lib\Drupal\Core\Entity\EntityForm.php(106): Drupal\commerce_payment\Form\PaymentGatewayForm->form(Array, Object(Drupal\Core\Form\FormState))
#4 C:\wamp64\www\atrevetepy\modules\contrib\commerce\modules\payment\src\Form\PaymentGatewayForm.php(65): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#5 [internal function]: Drupal\commerce_payment\Form\PaymentGatewayForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#6 C:\wamp64\www\atrevetepy\core\lib\Drupal\Core\Form\FormBuilder.php(531): call_user_func_array(Array, Array)
#7 C:\wamp64\www\atrevetepy\core\lib\Drupal\Core\Form\FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('commerce_paymen...', Object(Drupal\Core\Form\FormState))
#8 C:\wamp64\www\atrevetepy\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\commerce_payment\Form\PaymentGatewayForm), Object(Drupal\Core\Form\FormState))
#9 C:\wamp64\www\atrevetepy\core\modules\layout_builder\src\Controller\LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
etc etc.

Steps to reproduce

Create a payment gateway entry
Select PayPal recurring (Express Checkout)
Select Sandbox
Select Activate
Save

Go to the entry in the list of gateways and press Edit

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain atrevetemen.adm

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.

Production build 0.71.5 2024