Error when enabling "Use Alias" in the Payment gateway settings

Created on 15 October 2018, over 6 years ago
Updated 19 February 2025, about 2 months ago

Hi

If i enable "Use Alias" in the payment gateway settings of the datatrans payment gateway, i receive the following error after i completed a payment:

Drupal\Core\Entity\EntityStorageException: Required payment method field "payment_gateway" is empty. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 829 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

While investigating it, it turns out that creating the payment method with this code
$payment_method = $this->createPaymentMethod($post_data);
leads to the error.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇭Switzerland megadesk3000

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.

  • 🇨🇭Switzerland aerzas

    Since it concerns a version that is no longer supported, let's close this issue.
    Please reopen if the problem occurs on the active version.

Production build 0.71.5 2024