Warning: Undefined array key "vendor"

Created on 5 February 2024, 5 months ago

When checking out after entering card details and clicking continue to review I get the following error:

Warning: Undefined array key "vendor" in Drupal\commerce_sage\Plugin\Commerce\PaymentGateway\Onsite->createMerchantSessionKey() (line 741 of modules/contrib/commerce_sage/src/Plugin/Commerce/PaymentGateway/Onsite.php).

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom c_archer Cumbria

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

Comments & Activities

  • Issue created by @c_archer
  • πŸ‡¬πŸ‡§United Kingdom c_archer Cumbria

    This is due the config assume the payment gateway has been named sagepay_opayo

    public function getSagepayConfiguration(OrderInterface $order = null): array {
        $gateway_configuration = [];
    
        // Get the payment gateway configuration.
        if ($sagepay_opayo_configuration = \Drupal::config('commerce_payment.commerce_payment_gateway.sagepay_opayo')) {
Production build 0.69.0 2024