Skip to content
Snippets Groups Projects
Commit 59dcc6d9 authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Sascha Grossenbacher
Browse files

Issue #3146782 by Project Update Bot, Berdir: Automated Drupal 9 compatibility fixes

parent 715ad335
Branches
Tags
No related merge requests found
......@@ -2,6 +2,6 @@ name: Commerce Datatrans
type: module
description: 'Provides payment gateway for Datatrans.'
package: Commerce
core: 8.x
core_version_requirement: ^8.7.7 || ^9
dependencies:
- commerce:commerce_payment
......@@ -241,7 +241,7 @@ class Datatrans extends OffsitePaymentGatewayBase {
$post_data = $request->request->all();
if (!$this->validateResponseData($post_data, $order)) {
drupal_set_message($this->t('There was a problem while processing your payment.'), 'warning');
$this->messenger()->addWarning($this->t('There was a problem while processing your payment.'));
throw new PaymentGatewayException();
}
......
......@@ -2,7 +2,7 @@
namespace Drupal\commerce_datatrans\Plugin\Commerce\PaymentMethodType;
use Drupal\commerce\BundleFieldDefinition;
use Drupal\entity\BundleFieldDefinition;
use Drupal\commerce_payment\Entity\PaymentMethodInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType\PaymentMethodTypeBase;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment